|
@@ -8,14 +8,14 @@
|
|
center
|
|
center
|
|
top="5vh"
|
|
top="5vh"
|
|
v-dialogDrag
|
|
v-dialogDrag
|
|
- :title="showSave?'批量计算-结果保存':'批量计算-选择指标和计算公式'"
|
|
|
|
|
|
+ :title="showSave ? $t('EtaBasePage.title_batch_save') : $t('EtaBasePage.title_batch_calc')"
|
|
>
|
|
>
|
|
<div class="batch-computed-wrap" v-if="!showSave">
|
|
<div class="batch-computed-wrap" v-if="!showSave">
|
|
<el-form inline :disabled="operationForm.view">
|
|
<el-form inline :disabled="operationForm.view">
|
|
<div class="type-wrap">
|
|
<div class="type-wrap">
|
|
<div style="margin-right:50px">
|
|
<div style="margin-right:50px">
|
|
- <span>计算公式</span>
|
|
|
|
- <el-select :disabled="isEdit" v-model="computedType" @change="handleComputedTypeChange" placeholder="请选择">
|
|
|
|
|
|
+ <span><!-- 计算公式 -->{{$t('EtaBasePage.calculate_formula')}}</span>
|
|
|
|
+ <el-select :disabled="isEdit" v-model="computedType" @change="handleComputedTypeChange" :placeholder="$t('Edb.please_select')">
|
|
<el-option
|
|
<el-option
|
|
v-for="opt in computedBatchTypes"
|
|
v-for="opt in computedBatchTypes"
|
|
:key="opt.type"
|
|
:key="opt.type"
|
|
@@ -28,40 +28,46 @@
|
|
<!-- 累计值转月/季值 -->
|
|
<!-- 累计值转月/季值 -->
|
|
<el-form-item v-if="computedType=='toMonthSeason'">
|
|
<el-form-item v-if="computedType=='toMonthSeason'">
|
|
<el-radio-group v-model="subComputedType" @change="handleComputedSubTypeChange">
|
|
<el-radio-group v-model="subComputedType" @change="handleComputedSubTypeChange">
|
|
- <el-radio :label="5">转月值</el-radio>
|
|
|
|
- <el-radio :label="61">转季值</el-radio>
|
|
|
|
|
|
+ <el-radio :label="5">
|
|
|
|
+ <!-- 转月值 -->
|
|
|
|
+ {{$t('Edb.CalculatesAll.to_monthly_v2')}}
|
|
|
|
+ </el-radio>
|
|
|
|
+ <el-radio :label="61">
|
|
|
|
+ <!-- 转季值 -->
|
|
|
|
+ {{$t('Edb.CalculatesAll.to_quarterly_v2')}}
|
|
|
|
+ </el-radio>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
<!-- N期移动均值、N期环比值、N期环差值 -->
|
|
<!-- N期移动均值、N期环比值、N期环差值 -->
|
|
- <el-form-item required v-if="[8,12,13].includes(computedType)" label="N等于" style="width:280px">
|
|
|
|
- <el-input v-model="formData.nNum" placeholder="请输入N数值" type="number" style="width:200px"></el-input>
|
|
|
|
|
|
+ <el-form-item required v-if="[8,12,13].includes(computedType)" :label="$t('EtaBasePage.label_n_val')" style="width:280px">
|
|
|
|
+ <el-input v-model="formData.nNum" :placeholder="$t('Edb.InputHolderAll.input_n_value')" type="number" style="width:200px"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
<!-- 超级季节性 -->
|
|
<!-- 超级季节性 -->
|
|
<template v-if="computedType==35">
|
|
<template v-if="computedType==35">
|
|
- <el-form-item required label="N等于" style="width:280px">
|
|
|
|
- <el-input v-model="formData.nNum" placeholder="请输入N数值" type="number" style="width:200px"></el-input>
|
|
|
|
|
|
+ <el-form-item required :label="$t('EtaBasePage.label_n_val')" style="width:280px">
|
|
|
|
+ <el-input v-model="formData.nNum" :placeholder="$t('Edb.InputHolderAll.input_n_value')" type="number" style="width:200px"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="日历" style="width:180px">
|
|
|
|
|
|
+ <el-form-item :label="$t('EtaBasePage.label_calendar')" style="width:180px">
|
|
<el-select v-model="formData.calendarType" style="width:120px">
|
|
<el-select v-model="formData.calendarType" style="width:120px">
|
|
- <el-option label="公历" value="公历"></el-option>
|
|
|
|
- <el-option label="农历" value="农历"></el-option>
|
|
|
|
|
|
+ <el-option :label="$t('Chart.calendar_gre')" value="公历"></el-option>
|
|
|
|
+ <el-option :label="$t('Chart.calendar_lunar')" value="农历"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<!-- 降频 -->
|
|
<!-- 降频 -->
|
|
<template v-if="computedType==51">
|
|
<template v-if="computedType==51">
|
|
- <el-form-item required label="频度" style="width:180px">
|
|
|
|
|
|
+ <el-form-item required :label="$t('Edb.Detail.e_fre')" style="width:180px">
|
|
<el-select v-model="formData.frequency" style="width:120px">
|
|
<el-select v-model="formData.frequency" style="width:120px">
|
|
- <el-option v-for="opt in frequencyArr" :key="opt" :label="opt" :value="opt"></el-option>
|
|
|
|
|
|
+ <el-option v-for="opt in frequencyArr" :key="opt.value" :label="opt.label" :value="opt.value"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="数据取值" style="width:200px">
|
|
|
|
|
|
+ <el-form-item :label="$t('EtaBasePage.label_val_type')" style="width:200px">
|
|
<el-select v-model="formData.valueType" style="width:120px">
|
|
<el-select v-model="formData.valueType" style="width:120px">
|
|
- <el-option key="期末值" label="期末值" value="期末值"/>
|
|
|
|
- <el-option key="平均值" label="平均值" value="平均值"/>
|
|
|
|
|
|
+ <el-option key="期末值" :label="$t('EtaBasePage.val_type_end')" value="期末值"/>
|
|
|
|
+ <el-option key="平均值" :label="$t('EtaBasePage.val_type_average')" value="平均值"/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</template>
|
|
</template>
|
|
@@ -69,48 +75,57 @@
|
|
<!-- 累计值 -->
|
|
<!-- 累计值 -->
|
|
<template v-if="computedType=='accumulate'">
|
|
<template v-if="computedType=='accumulate'">
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-radio v-model="subComputedType" :label="62">累计值</el-radio>
|
|
|
|
|
|
+ <el-radio v-model="subComputedType" :label="62">
|
|
|
|
+ <!-- 累计值 -->
|
|
|
|
+ {{$t('Edb.CalculatesAll.cumulate')}}
|
|
|
|
+ </el-radio>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item required label="频度" style="width:180px" v-if="subComputedType==62">
|
|
|
|
|
|
+ <el-form-item required :label="$t('Edb.Detail.e_fre')" style="width:180px" v-if="subComputedType==62">
|
|
<el-select v-model="formData.frequency" style="width:120px">
|
|
<el-select v-model="formData.frequency" style="width:120px">
|
|
- <el-option v-for="opt in frequencyArr" :key="opt" :label="opt" :value="opt"></el-option>
|
|
|
|
|
|
+ <el-option v-for="opt in frequencyArr" :key="opt.value" :label="opt.label" :value="opt.value"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="最新值处理" style="width:210px" v-if="subComputedType==62">
|
|
|
|
|
|
+ <el-form-item :label="$t('Edb.CalculatesAll.latest_processing')" style="width:210px" v-if="subComputedType==62">
|
|
<el-select v-model="formData.newValue" style="width:120px">
|
|
<el-select v-model="formData.newValue" style="width:120px">
|
|
- <el-option label="默认" :value="0"/>
|
|
|
|
- <el-option label="均值填充" :value="1"/>
|
|
|
|
|
|
+ <el-option :label="$t('EtaBasePage.default_select_text')" :value="0"/>
|
|
|
|
+ <el-option :label="$t('EtaBasePage.mean_imputation_select_text')" :value="1"/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-radio v-model="subComputedType" :label="63">年初至今累计值</el-radio>
|
|
|
|
|
|
+ <el-radio v-model="subComputedType" :label="63">
|
|
|
|
+ <!-- /* '年初至今累计值' */ -->
|
|
|
|
+ {{$t('Edb.CalculatesAll.cumulate_oneyear')}}
|
|
|
|
+ </el-radio>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<!-- 指数修匀 -->
|
|
<!-- 指数修匀 -->
|
|
<template v-if="computedType==72">
|
|
<template v-if="computedType==72">
|
|
- <el-form-item required label="alpha值" style="width:220px">
|
|
|
|
- <el-input v-model.trim="formData.alphaValue" style="width:140px" placeholder="请输入alpha值"></el-input>
|
|
|
|
|
|
+ <el-form-item required :label="$t('EtaBasePage.alpha_value_lable')" style="width:220px">
|
|
|
|
+ <el-input v-model.trim="formData.alphaValue" style="width:140px" :placeholder="$t('Edb.InputHolderAll.input_alpha_val')"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<!-- 与常数计算 -->
|
|
<!-- 与常数计算 -->
|
|
<template v-if="computedType=='withNum'">
|
|
<template v-if="computedType=='withNum'">
|
|
- <el-form-item required label="公式">
|
|
|
|
- <el-input v-model="formData.formula" placeholder="请输入公式" clearable style="width: 200px"/>
|
|
|
|
- <span>公式示例:A+100,或A*2</span>
|
|
|
|
|
|
+ <el-form-item required :label="$t('EtaBasePage.formula_lable')">
|
|
|
|
+ <el-input v-model="formData.formula" :placeholder="$t('EtaBasePage.input_formula_msg')" clearable style="width: 200px"/>
|
|
|
|
+ <span>
|
|
|
|
+ <!-- 公式示例:A+100,或A*2 -->
|
|
|
|
+ {{$t('EtaBasePage.formula_example_text')}}
|
|
|
|
+ </span>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<!-- 与单指标计算 -->
|
|
<!-- 与单指标计算 -->
|
|
<template v-if="computedType=='withEDB'">
|
|
<template v-if="computedType=='withEDB'">
|
|
- <el-form-item required label="指标B">
|
|
|
|
|
|
+ <el-form-item required :label="$t('EtaBasePage.metric_label_b')">
|
|
<el-select
|
|
<el-select
|
|
v-model="select_target"
|
|
v-model="select_target"
|
|
v-loadMore="searchLoad"
|
|
v-loadMore="searchLoad"
|
|
:filterable="!select_target"
|
|
:filterable="!select_target"
|
|
clearable
|
|
clearable
|
|
- placeholder="请输入指标名称"
|
|
|
|
|
|
+ :placeholder="$t('Edb.InputHolderAll.input_name')"
|
|
style="width: 250px"
|
|
style="width: 250px"
|
|
remote
|
|
remote
|
|
:remote-method="getTarget"
|
|
:remote-method="getTarget"
|
|
@@ -139,24 +154,27 @@
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item required label="公式">
|
|
|
|
- <el-input v-model="formData.formula" placeholder="请输入公式" clearable style="width: 200px"/>
|
|
|
|
- <span>公式示例:A+B,或A/B,A/(A+B)</span>
|
|
|
|
|
|
+ <el-form-item required :label="$t('EtaBasePage.formula_lable')">
|
|
|
|
+ <el-input v-model="formData.formula" :placeholder="$t('EtaBasePage.input_formula_msg')" clearable style="width: 200px"/>
|
|
|
|
+ <span>
|
|
|
|
+ <!-- 公式示例:A+B,或A/B,A/(A+B) -->
|
|
|
|
+ {{$t('EtaBasePage.formula_example_text_a_b')}}
|
|
|
|
+ </span>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="生成指标时间序列">
|
|
|
|
|
|
+ <el-form-item :label="$t('EtaBasePage.create_edb_time_index')">
|
|
<el-cascader
|
|
<el-cascader
|
|
v-model="formData.timeSeriesVal"
|
|
v-model="formData.timeSeriesVal"
|
|
style="width:180px"
|
|
style="width:180px"
|
|
:options="timeSeriesOpt"
|
|
:options="timeSeriesOpt"
|
|
:props="{emitPath:false}"
|
|
:props="{emitPath:false}"
|
|
:show-all-levels="false"
|
|
:show-all-levels="false"
|
|
- placeholder="请选择"
|
|
|
|
|
|
+ :placeholder="$t('Edb.please_select')"
|
|
></el-cascader>
|
|
></el-cascader>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="空值处理">
|
|
|
|
|
|
+ <el-form-item :label="$t('EtaBasePage.null_val_deal')">
|
|
<el-select
|
|
<el-select
|
|
v-model="formData.nullValueWay"
|
|
v-model="formData.nullValueWay"
|
|
- placeholder="请选择"
|
|
|
|
|
|
+ :placeholder="$t('Edb.please_select')"
|
|
style="width:180px"
|
|
style="width:180px"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
@@ -168,12 +186,12 @@
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="MAX、MIN空值处理" v-if="showMaxNullDeal">
|
|
|
|
|
|
+ <el-form-item :label="$t('EtaBasePage.max_null_val')" v-if="showMaxNullDeal">
|
|
<el-select
|
|
<el-select
|
|
v-model="formData.maxNullWay"
|
|
v-model="formData.maxNullWay"
|
|
- placeholder="请选择"
|
|
|
|
|
|
+ :placeholder="$t('Edb.please_select')"
|
|
>
|
|
>
|
|
- <el-option label="等于0" :value="1" />
|
|
|
|
|
|
+ <el-option :label="$t('EtaBasePage.equal_zeto')" :value="1" />
|
|
<el-option label="跳过空值" :value="2" />
|
|
<el-option label="跳过空值" :value="2" />
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -183,24 +201,24 @@
|
|
<template v-if="computedType=='multipleEDB'">
|
|
<template v-if="computedType=='multipleEDB'">
|
|
<el-form-item style="margin-right:30px">
|
|
<el-form-item style="margin-right:30px">
|
|
<el-radio-group :disabled="isEdit" v-model="subComputedType">
|
|
<el-radio-group :disabled="isEdit" v-model="subComputedType">
|
|
- <el-radio :label="81">求和</el-radio>
|
|
|
|
- <el-radio :label="82">求平均</el-radio>
|
|
|
|
|
|
+ <el-radio :label="81"><!-- -->{{$t('EtaBasePage.sum_radio_label')}}</el-radio>
|
|
|
|
+ <el-radio :label="82"><!-- 求平均 -->{{$t('EtaBasePage.average_radio_label')}}</el-radio>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="生成指标时间序列">
|
|
|
|
|
|
+ <el-form-item :label="$t('EtaBasePage.create_edb_time_index')">
|
|
<el-cascader
|
|
<el-cascader
|
|
v-model="formData.timeSeriesVal"
|
|
v-model="formData.timeSeriesVal"
|
|
style="width:180px"
|
|
style="width:180px"
|
|
:options="timeSeriesOpt"
|
|
:options="timeSeriesOpt"
|
|
:props="{emitPath:false}"
|
|
:props="{emitPath:false}"
|
|
:show-all-levels="false"
|
|
:show-all-levels="false"
|
|
- placeholder="请选择"
|
|
|
|
|
|
+ :placeholder="$t('Edb.please_select')"
|
|
></el-cascader>
|
|
></el-cascader>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="空值处理">
|
|
|
|
|
|
+ <el-form-item :label="$t('EtaBasePage.null_val_deal')">
|
|
<el-select
|
|
<el-select
|
|
v-model="formData.nullValueWay"
|
|
v-model="formData.nullValueWay"
|
|
- placeholder="请选择"
|
|
|
|
|
|
+ :placeholder="$t('Edb.please_select')"
|
|
style="width:180px"
|
|
style="width:180px"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
@@ -219,7 +237,10 @@
|
|
</div>
|
|
</div>
|
|
</el-form>
|
|
</el-form>
|
|
<div class="filter-wrap" style="margin-top:20px">
|
|
<div class="filter-wrap" style="margin-top:20px">
|
|
- <p style="margin-bottom:10px">待选指标(选择指标数量不超过{{MAXAddNUM}})</p>
|
|
|
|
|
|
+ <p style="margin-bottom:10px">
|
|
|
|
+ <!-- 待选指标(选择指标数量不超过{{MAXAddNUM}}) -->
|
|
|
|
+ {{$t('EtaBasePage.pending_metrics',{num:MAXAddNUM})}}
|
|
|
|
+ </p>
|
|
<div>
|
|
<div>
|
|
<el-cascader
|
|
<el-cascader
|
|
v-model="filter.classify"
|
|
v-model="filter.classify"
|
|
@@ -227,13 +248,13 @@
|
|
:props="classifyProps"
|
|
:props="classifyProps"
|
|
clearable
|
|
clearable
|
|
collapse-tags
|
|
collapse-tags
|
|
- placeholder="指标分类"
|
|
|
|
|
|
+ :placeholder="$t('EtaBasePage.label_classify')"
|
|
style="width: 240px"
|
|
style="width: 240px"
|
|
@change="handleFilter"
|
|
@change="handleFilter"
|
|
/>
|
|
/>
|
|
<el-select
|
|
<el-select
|
|
v-model="filter.frequency"
|
|
v-model="filter.frequency"
|
|
- placeholder="请选择频率"
|
|
|
|
|
|
+ :placeholder="$t('EtaBasePage.select_frequency')"
|
|
style="width: 140px"
|
|
style="width: 140px"
|
|
clearable
|
|
clearable
|
|
multiple
|
|
multiple
|
|
@@ -243,15 +264,15 @@
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in frequencyArr"
|
|
v-for="item in frequencyArr"
|
|
- :key="item"
|
|
|
|
- :label="item"
|
|
|
|
- :value="item"
|
|
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value"
|
|
>
|
|
>
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
<el-cascader
|
|
<el-cascader
|
|
v-model="filter.user"
|
|
v-model="filter.user"
|
|
- placeholder="创建人"
|
|
|
|
|
|
+ :placeholder="$t('EtaBasePage.table_col_creator')"
|
|
:options="sysUserOpts"
|
|
:options="sysUserOpts"
|
|
:props="sysUserProps"
|
|
:props="sysUserProps"
|
|
collapse-tags
|
|
collapse-tags
|
|
@@ -262,7 +283,7 @@
|
|
@change="handleFilter"
|
|
@change="handleFilter"
|
|
/>
|
|
/>
|
|
<el-input
|
|
<el-input
|
|
- placeholder="指标ID/指标名称"
|
|
|
|
|
|
+ :placeholder="$t('Edb.InputHolderAll.input_name_orid')"
|
|
v-model="filter.keyword"
|
|
v-model="filter.keyword"
|
|
style="width: 200px"
|
|
style="width: 200px"
|
|
@keydown.enter.native="handleFilter"
|
|
@keydown.enter.native="handleFilter"
|
|
@@ -270,7 +291,7 @@
|
|
<i slot="prefix" class="el-input__icon el-icon-search"></i>
|
|
<i slot="prefix" class="el-input__icon el-icon-search"></i>
|
|
</el-input>
|
|
</el-input>
|
|
<el-checkbox
|
|
<el-checkbox
|
|
- label="列表全选"
|
|
|
|
|
|
+ :label="$t('EtaBasePage.label_all_check')"
|
|
v-model="isCheckAll"
|
|
v-model="isCheckAll"
|
|
:indeterminate="isCheckIndeterminate"
|
|
:indeterminate="isCheckIndeterminate"
|
|
style="margin-left:10px"
|
|
style="margin-left:10px"
|
|
@@ -293,12 +314,20 @@
|
|
v-loading="listLoading"
|
|
v-loading="listLoading"
|
|
>
|
|
>
|
|
<el-table-column type="selection" min-width="50" align="center" :selectable="filterEdbAuth"/>
|
|
<el-table-column type="selection" min-width="50" align="center" :selectable="filterEdbAuth"/>
|
|
- <el-table-column label="指标全称" show-overflow-tooltip align="center" :prop="$parent.currentLang==='en'?'EdbNameEn':'EdbName'"/>
|
|
|
|
- <el-table-column label="最新日期" align="center" prop="EndDate" width="120px" />
|
|
|
|
- <el-table-column label="最新值" align="center" show-overflow-tooltip prop="EndValue" width="80px"/>
|
|
|
|
- <el-table-column label="创建人" align="center" show-overflow-tooltip prop="SysUserRealName" width="80px"/>
|
|
|
|
- <el-table-column label="频度" align="center" prop="Frequency" width="50px"/>
|
|
|
|
- <el-table-column label="单位" show-overflow-tooltip align="center" :prop="$parent.currentLang==='en'?'UnitEn':'Unit'" width="50px"/>
|
|
|
|
|
|
+ <el-table-column :label="$t('EtaBasePage.full_metric_name')" show-overflow-tooltip align="center" :prop="$parent.currentLang==='en'?'EdbNameEn':'EdbName'"/>
|
|
|
|
+ <el-table-column :label="$t('Edb.Detail.e_latest_date')" align="center" prop="EndDate" width="120px" />
|
|
|
|
+ <el-table-column :label="$t('Edb.Detail.e_latest_value')" align="center" show-overflow-tooltip prop="EndValue" width="80px"/>
|
|
|
|
+ <el-table-column :label="$t('EtaBasePage.table_col_creator')" align="center" show-overflow-tooltip prop="SysUserRealName" width="80px"/>
|
|
|
|
+ <el-table-column :label="$t('Edb.Detail.e_fre')" align="center" prop="Frequency" width="50px">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ getFrequencyTrans(scope.row.Frequency) }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column :label="$t('Edb.Detail.e_unit')" show-overflow-tooltip align="center" :prop="$parent.currentLang==='en'?'UnitEn':'Unit'" width="50px">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ getUnitTrans(scope.row.Unit) }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
<m-page
|
|
<m-page
|
|
style="margin-top:10px"
|
|
style="margin-top:10px"
|
|
@@ -312,7 +341,10 @@
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div style="padding-top:200px;margin:0 30px">
|
|
<div style="padding-top:200px;margin:0 30px">
|
|
- <el-button type="primary" :disabled="operationForm.view" :loading="addLoading" @click="getAddEdbListData">加入已选指标</el-button>
|
|
|
|
|
|
+ <el-button type="primary" :disabled="operationForm.view" :loading="addLoading" @click="getAddEdbListData">
|
|
|
|
+ <!-- 加入已选指标 -->
|
|
|
|
+ {{$t('EtaBasePage.add_to_selections')}}
|
|
|
|
+ </el-button>
|
|
</div>
|
|
</div>
|
|
<div class="right-box">
|
|
<div class="right-box">
|
|
<el-table
|
|
<el-table
|
|
@@ -320,12 +352,12 @@
|
|
border
|
|
border
|
|
height="500px"
|
|
height="500px"
|
|
>
|
|
>
|
|
- <el-table-column label="序号" width="50px" align="center" prop="No" v-if="computedType=='multipleEDB'">
|
|
|
|
|
|
+ <el-table-column :label="$t('EtaBasePage.serial_num')" width="50px" align="center" prop="No" v-if="computedType=='multipleEDB'">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{scope.$index|getNoText}}
|
|
{{scope.$index|getNoText}}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="指标全称" show-overflow-tooltip align="center" :prop="$parent.currentLang==='en'?'EdbNameEn':'EdbName'"/>
|
|
|
|
|
|
+ <el-table-column :label="$t('EtaBasePage.full_metric_name')" show-overflow-tooltip align="center" :prop="$parent.currentLang==='en'?'EdbNameEn':'EdbName'"/>
|
|
<el-table-column width="50px" align="center" v-if="!operationForm.view">
|
|
<el-table-column width="50px" align="center" v-if="!operationForm.view">
|
|
<template slot="header" slot-scope="scope">
|
|
<template slot="header" slot-scope="scope">
|
|
<img @click="handleDelSelect('all')" style="width:15px;height:15px;cursor: pointer;" src="~@/assets/img/ai_m/delete.png" alt="">
|
|
<img @click="handleDelSelect('all')" style="width:15px;height:15px;cursor: pointer;" src="~@/assets/img/ai_m/delete.png" alt="">
|
|
@@ -338,8 +370,8 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div style="text-align:center;margin:60px 0 40px 0">
|
|
<div style="text-align:center;margin:60px 0 40px 0">
|
|
- <el-button type="primary" plain @click="handleCloseSelf">取消</el-button>
|
|
|
|
- <el-button type="primary" @click="handleNextStep">下一步</el-button>
|
|
|
|
|
|
+ <el-button type="primary" plain @click="handleCloseSelf">{{$t('Dialog.cancel_btn')}}</el-button>
|
|
|
|
+ <el-button type="primary" @click="handleNextStep">{{$t('Dialog.next_step')}}</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 结果保存 -->
|
|
<!-- 结果保存 -->
|
|
@@ -360,7 +392,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import mPage from '@/components/mPage.vue'
|
|
import mPage from '@/components/mPage.vue'
|
|
-import {computedBatchTypesV2} from './util'
|
|
|
|
|
|
+import {computedBatchTypesV2,getBatchComputedTypesV2} from './util'
|
|
import { dataBaseInterface,departInterence } from '@/api/api.js';
|
|
import { dataBaseInterface,departInterence } from '@/api/api.js';
|
|
import batchComputedSave from './batchComputedSave.vue';
|
|
import batchComputedSave from './batchComputedSave.vue';
|
|
import {generateSeriesArray} from './util'
|
|
import {generateSeriesArray} from './util'
|
|
@@ -401,11 +433,13 @@ export default {
|
|
timeSeriesOpt(){
|
|
timeSeriesOpt(){
|
|
let arr=[
|
|
let arr=[
|
|
{
|
|
{
|
|
- label:`指标A`,
|
|
|
|
|
|
+ // label:`指标A`,
|
|
|
|
+ label:this.$t('EtaBasePage.edbTagA'),
|
|
value:'A'
|
|
value:'A'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label:`指标B`,
|
|
|
|
|
|
+ // label:`指标B`,
|
|
|
|
+ label:this.$t('EtaBasePage.edbTagB'),
|
|
value:'B'
|
|
value:'B'
|
|
}
|
|
}
|
|
]
|
|
]
|
|
@@ -419,12 +453,14 @@ export default {
|
|
}
|
|
}
|
|
return [
|
|
return [
|
|
{
|
|
{
|
|
- label:'指定指标时间序列',
|
|
|
|
|
|
+ // label:'指定指标时间序列',
|
|
|
|
+ lable:this.$t('EtaBasePage.specify_series_label'),
|
|
value:'0',
|
|
value:'0',
|
|
children:arr
|
|
children:arr
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label:'所有指标时间序列并集',
|
|
|
|
|
|
+ // label:'所有指标时间序列并集',
|
|
|
|
+ lable:this.$t('EtaBasePage.union_series_label'),
|
|
value:'all',
|
|
value:'all',
|
|
}
|
|
}
|
|
]
|
|
]
|
|
@@ -432,9 +468,59 @@ export default {
|
|
|
|
|
|
frequencyArr(){
|
|
frequencyArr(){
|
|
if(this.computedType==75){
|
|
if(this.computedType==75){
|
|
- return ['周度','旬度','月度', '季度', '年度']
|
|
|
|
|
|
+
|
|
|
|
+ return [
|
|
|
|
+ {
|
|
|
|
+ value: '周度',
|
|
|
|
+ label: /* '周度' */this.$t('Edb.FreAll.week'),
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: '旬度',
|
|
|
|
+ label: /* '旬度' */this.$t('Edb.FreAll.dekad'),
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: '月度',
|
|
|
|
+ label: /* '月度' */this.$t('Edb.FreAll.month'),
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: '季度',
|
|
|
|
+ label: /* '季度' */ this.$t('Edb.FreAll.quarter'),
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ {
|
|
|
|
+ value: '年度',
|
|
|
|
+ label: /* '年度' */ this.$t('Edb.FreAll.year'),
|
|
|
|
+ }]
|
|
}
|
|
}
|
|
- return ['日度', '周度','旬度','月度', '季度', '年度']
|
|
|
|
|
|
+ return [
|
|
|
|
+ {
|
|
|
|
+ value: '日度',
|
|
|
|
+ label: /* '日度' */this.$t('Edb.FreAll.day'),
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: '周度',
|
|
|
|
+ label: /* '周度' */this.$t('Edb.FreAll.week'),
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: '旬度',
|
|
|
|
+ label: /* '旬度' */this.$t('Edb.FreAll.dekad'),
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: '月度',
|
|
|
|
+ label: /* '月度' */this.$t('Edb.FreAll.month'),
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: '季度',
|
|
|
|
+ label: /* '季度' */ this.$t('Edb.FreAll.quarter'),
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ {
|
|
|
|
+ value: '年度',
|
|
|
|
+ label: /* '年度' */ this.$t('Edb.FreAll.year'),
|
|
|
|
+ }]
|
|
|
|
+ },
|
|
|
|
+ computedBatchTypes(){
|
|
|
|
+ return getBatchComputedTypesV2()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -482,7 +568,7 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
showSave:false,//显示结果保存模块
|
|
showSave:false,//显示结果保存模块
|
|
- computedBatchTypes:computedBatchTypesV2,//计算类型筛选项
|
|
|
|
|
|
+ /* computedBatchTypes:computedBatchTypesV2,//计算类型筛选项 */
|
|
computedType:computedBatchTypesV2[0].type,//当前选中的计算类型
|
|
computedType:computedBatchTypesV2[0].type,//当前选中的计算类型
|
|
subComputedType:'',//二级计算类型
|
|
subComputedType:'',//二级计算类型
|
|
formData:{
|
|
formData:{
|
|
@@ -511,7 +597,6 @@ export default {
|
|
keyword:''
|
|
keyword:''
|
|
},
|
|
},
|
|
|
|
|
|
- // frequencyArr: ['日度', '周度','旬度','月度', '季度', '年度'],
|
|
|
|
classifyOpt: [],
|
|
classifyOpt: [],
|
|
classifyProps: {
|
|
classifyProps: {
|
|
label: 'ClassifyName',
|
|
label: 'ClassifyName',
|
|
@@ -530,11 +615,12 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
nullWayOptions: [
|
|
nullWayOptions: [
|
|
- { label: '查找前后35天最近值',value: 0 },
|
|
|
|
- { label: '不计算',value: 1 },
|
|
|
|
- { label: '前值填充',value: 2 },
|
|
|
|
- { label: '后值填充',value: 3 },
|
|
|
|
- { label: '等于0',value: 4 },
|
|
|
|
|
|
+
|
|
|
|
+ { label: /* '查找前后35天最近值' */ this.$t('EtaBasePage.null_val_deal_0'),value: 0 },
|
|
|
|
+ { label: /* '不计算' */ this.$t('EtaBasePage.not_alculate_options'),value: 1 },
|
|
|
|
+ { label: /* '前值填充' */this.$t('EtaBasePage.forward_fill_options'),value: 2 },
|
|
|
|
+ { label: /* '后值填充' */this.$t('EtaBasePage.backward_fill_options') ,value: 3 },
|
|
|
|
+ { label: /* '等于0' */this.$t('EtaBasePage.equal_zeto') ,value: 4 },
|
|
],
|
|
],
|
|
|
|
|
|
isCheckAll:false,//是否全选
|
|
isCheckAll:false,//是否全选
|
|
@@ -591,35 +677,35 @@ export default {
|
|
// 跳转下一步
|
|
// 跳转下一步
|
|
handleNextStep(){
|
|
handleNextStep(){
|
|
if(this.selectList.length===0){
|
|
if(this.selectList.length===0){
|
|
- this.$message.warning('请选择指标')
|
|
|
|
|
|
+ this.$message.warning(/* "请选择指标" */this.$t('Edb.InputHolderAll.input_select_edb'))
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if([8,12,13,35].includes(this.computedType) && !this.formData.nNum){
|
|
if([8,12,13,35].includes(this.computedType) && !this.formData.nNum){
|
|
- this.$message.warning('请输入N数值')
|
|
|
|
|
|
+ this.$message.warning(/* "请输入N数值" */ this.$t('Edb.InputHolderAll.input_n_value'))
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if([51].includes(this.computedType)&& !this.formData.frequency){
|
|
if([51].includes(this.computedType)&& !this.formData.frequency){
|
|
- this.$message.warning('请选择频度')
|
|
|
|
|
|
+ this.$message.warning(/*'请选择频度'*/this.$t('Edb.InputHolderAll.input_fre'))
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if(['accumulate'].includes(this.computedType)&&this.subComputedType==62&& !this.formData.frequency){
|
|
if(['accumulate'].includes(this.computedType)&&this.subComputedType==62&& !this.formData.frequency){
|
|
- this.$message.warning('请选择频度')
|
|
|
|
|
|
+ this.$message.warning(/*'请选择频度'*/this.$t('Edb.InputHolderAll.input_fre'))
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if(this.computedType==72&&!this.formData.alphaValue){
|
|
if(this.computedType==72&&!this.formData.alphaValue){
|
|
- this.$message.warning('请输入alpha值')
|
|
|
|
|
|
+ this.$message.warning(/*'请输入alpha值'*/this.$t('Edb.InputHolderAll.input_alpha_val'))
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if(this.computedType==72&&(Number(this.formData.alphaValue)<=0||Number(this.formData.alphaValue)>=1)){
|
|
if(this.computedType==72&&(Number(this.formData.alphaValue)<=0||Number(this.formData.alphaValue)>=1)){
|
|
- this.$message.warning('请输入>0,<1的数值的alpha值')
|
|
|
|
|
|
+ this.$message.warning(/*''请输入>0,<1的数值的alpha值''*/ this.$t('EtaBasePage.numeric_greater_msg'))
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if(this.computedType=='withEDB'&&!this.select_target){
|
|
if(this.computedType=='withEDB'&&!this.select_target){
|
|
- this.$message.warning('请选择指标B')
|
|
|
|
|
|
+ this.$message.warning(/*'请选择指标B'*/this.$t('EtaBasePage.select_indicator_msg'))
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if(['withNum','withEDB'].includes(this.computedType)&&!this.formData.formula){
|
|
if(['withNum','withEDB'].includes(this.computedType)&&!this.formData.formula){
|
|
- this.$message.warning('请输入公式')
|
|
|
|
|
|
+ this.$message.warning(/*'请输入公式'8*/this.$t('EtaBasePage.input_formula_msg'))
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
@@ -635,11 +721,11 @@ export default {
|
|
// 点击加入已选指标库
|
|
// 点击加入已选指标库
|
|
async getAddEdbListData(){
|
|
async getAddEdbListData(){
|
|
if(!(this.isCheckAll || this.isCheckIndeterminate ) || (!(this.list && this.list.length>0))){
|
|
if(!(this.isCheckAll || this.isCheckIndeterminate ) || (!(this.list && this.list.length>0))){
|
|
- this.$message.warning('请选择指标')
|
|
|
|
|
|
+ this.$message.warning(/* "请选择指标" */this.$t('Edb.InputHolderAll.input_select_edb'))
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if(this.selectList.length>=this.MAXAddNUM){
|
|
if(this.selectList.length>=this.MAXAddNUM){
|
|
- this.$message.warning('已达批量添加指标数量上限')
|
|
|
|
|
|
+ this.$message.warning(/* "已达批量添加指标数量上限" */this.$t('EtaBasePage.limit_indicators_msg'))
|
|
return
|
|
return
|
|
}
|
|
}
|
|
const params={
|
|
const params={
|