|
@@ -4,7 +4,7 @@
|
|
|
id="leftfroala"
|
|
|
:class="{'full':!isRightFormShow,'block':isRightFormShow}"
|
|
|
v-loading="importChartNum > 0"
|
|
|
- element-loading-text="图表批量插入中..."
|
|
|
+ :element-loading-text="$t('ReportManage.ReportList.chart_insertion_progress')"
|
|
|
element-loading-spinner="el-icon-loading"
|
|
|
element-loading-background="rgba(0, 0, 0, 0.8)"
|
|
|
>
|
|
@@ -21,7 +21,7 @@
|
|
|
style="text-align: right; padding: 0px 0 15px 0; box-sizing: border-box"
|
|
|
>
|
|
|
<div v-show="lastsavetime" style="color: #666; margin-bottom: 15px">
|
|
|
- 最近保存时间:{{ lastsavetime }}
|
|
|
+ {{$t('ReportManage.ReportList.last_save_time')}}:{{ lastsavetime }}
|
|
|
</div>
|
|
|
<el-button
|
|
|
type="primary"
|
|
@@ -29,28 +29,28 @@
|
|
|
plain
|
|
|
@click.native="refreshReport"
|
|
|
>
|
|
|
- 一键刷新
|
|
|
+ {{$t('ReportManage.ReportList.click_refresh_btn')}}
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
size="medium"
|
|
|
plain
|
|
|
@click.native="handlePreviewReport"
|
|
|
- >预览</el-button
|
|
|
+ >{{$t('ReportManage.ReportList.preview_btn')}}</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
size="medium"
|
|
|
plain
|
|
|
@click.native="autoSave('cg')"
|
|
|
- >存草稿</el-button
|
|
|
+ >{{$t('ReportManage.ReportList.save_draft_btn')}}</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
size="medium"
|
|
|
@click.native="handlePublishReport"
|
|
|
:loading="isPublishloading"
|
|
|
- >发布章节</el-button
|
|
|
+ >{{$t('ReportManage.ReportList.publish_btn')}}</el-button
|
|
|
>
|
|
|
</div>
|
|
|
<div
|
|
@@ -63,7 +63,7 @@
|
|
|
"
|
|
|
>
|
|
|
<el-tabs v-model="tabsactive">
|
|
|
- <el-tab-pane :label="tab" :name="tab" v-for="tab in panelTabs" :key="tab"></el-tab-pane>
|
|
|
+ <el-tab-pane :label="tab.label" :name="tab.key" v-for="tab in panelTabs" :key="tab.key"></el-tab-pane>
|
|
|
</el-tabs>
|
|
|
<div
|
|
|
v-if="tabsactive == '基础信息'"
|
|
@@ -79,36 +79,36 @@
|
|
|
id="login-container"
|
|
|
@submit.native.prevent
|
|
|
>
|
|
|
- <el-form-item prop="type" label="品种">
|
|
|
+ <el-form-item prop="type" :label="$t('ReportManage.CategoryList.form_product_option')">
|
|
|
<el-input v-model="aeForm.type" size="medium" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item prop="title" label="标题">
|
|
|
+ <el-form-item prop="title" :label="$t('ReportManage.ReportList.title_ipt')">
|
|
|
<el-input
|
|
|
v-model="aeForm.title"
|
|
|
size="medium"
|
|
|
- placeholder="请输入标题"
|
|
|
+ :placeholder="$t('ReportManage.ReportList.input_title_please')"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item prop="addType" label="新增方式">
|
|
|
+ <el-form-item prop="addType" :label="$t('ReportManage.ReportList.new_method_btn')">
|
|
|
<el-select
|
|
|
v-model="aeForm.addType"
|
|
|
- placeholder="请选择"
|
|
|
+ :placeholder="$t('ReportManage.CategoryList.please_select')"
|
|
|
@change="handleAddTypeChange"
|
|
|
size="medium"
|
|
|
style="width: 270px"
|
|
|
>
|
|
|
- <el-option label="空白报告" :value="1"></el-option>
|
|
|
- <el-option label="继承报告" :value="2"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.ReportList.new_report_radio')" :value="1"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.ReportList.inherit_report_radio')" :value="2"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
prop="ticket"
|
|
|
- label="显示指标"
|
|
|
+ :label="$t('ReportManage.ReportList.display_metrics_lable')"
|
|
|
v-if="$route.query.type == 'day'"
|
|
|
>
|
|
|
<el-select
|
|
|
v-model="aeForm.ticket"
|
|
|
- placeholder="请选择"
|
|
|
+ :placeholder="$t('ReportManage.CategoryList.please_select')"
|
|
|
multiple
|
|
|
collapse-tags
|
|
|
size="medium"
|
|
@@ -122,26 +122,26 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item prop="author" label="创建人">
|
|
|
- <el-input placeholder="请输入" v-model="aeForm.author"></el-input>
|
|
|
+ <el-form-item prop="author" :label="$t('ReportManage.smart_creator_btn')">
|
|
|
+ <el-input :placeholder="$t('ReportManage.CategoryList.please_input')" v-model="aeForm.author"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="创建时间">
|
|
|
+ <el-form-item :label="$t('ReportManage.ReportList.creation_time_select')">
|
|
|
<el-date-picker
|
|
|
v-model="aeForm.createTime"
|
|
|
type="date"
|
|
|
value-format="yyyy-MM-dd"
|
|
|
- placeholder="选择日期"
|
|
|
+ :placeholder="$t('ReportManage.ReportList.select_date')"
|
|
|
size="medium"
|
|
|
:clearable="false"
|
|
|
style="width: 270px"
|
|
|
></el-date-picker>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="录音" v-if="$route.query.type == 'week'">
|
|
|
+ <el-form-item :label="$t('ReportManage.ReportList.recording_lable')" v-if="$route.query.type == 'week'">
|
|
|
<el-input
|
|
|
v-model="aeForm.audioUrl"
|
|
|
readonly
|
|
|
style="width: 65%"
|
|
|
- placeholder="请上传录音文件"
|
|
|
+ :placeholder="$t('ReportManage.ReportList.upload_audio_file')"
|
|
|
></el-input>
|
|
|
<el-upload
|
|
|
style="display: inline-block; margin-left: 10px"
|
|
@@ -153,19 +153,19 @@
|
|
|
:disabled="startUploadAudio"
|
|
|
>
|
|
|
<el-button type="primary" :loading="startUploadAudio"
|
|
|
- >上传录音</el-button
|
|
|
+ >{{$t('ReportManage.ReportList.up_recording_lable')}}</el-button
|
|
|
>
|
|
|
</el-upload>
|
|
|
|
|
|
<p style="color: #999; font-size: 12px">
|
|
|
- *注:要求音频格式为mp3、m4a,音频时长不超过15分钟
|
|
|
+ {{$t('ReportManage.ReportList.note_audio_minutes')}}
|
|
|
</p>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<div v-if="tabsactive == '图表插入'">
|
|
|
<el-input
|
|
|
- placeholder="标题/子标题/作者"
|
|
|
+ :placeholder="$t('ReportManage.ReportList.chart_name')"
|
|
|
v-model="key_word"
|
|
|
size="medium"
|
|
|
prefix-icon="el-icon-search"
|
|
@@ -173,15 +173,15 @@
|
|
|
>
|
|
|
</el-input>
|
|
|
<el-radio-group v-model="chart_source" @change="() => {search_page=1;$refs.chartListRef.scrollTop = 0;getreportlist()}" style="margin-top: 10px;">
|
|
|
- <el-radio :label="1">ETA图库</el-radio>
|
|
|
- <el-radio :label="2">商品价格曲线</el-radio>
|
|
|
- <el-radio :label="3">相关性图表</el-radio>
|
|
|
- <el-radio :label="6">拟合方程曲线</el-radio>
|
|
|
- <el-radio :label="7">统计特征</el-radio>
|
|
|
- <el-radio :label="10">跨品种分析</el-radio>
|
|
|
+ <el-radio :label="1">{{$t('ReportManage.ReportList.chart_inventory_radio')}}</el-radio>
|
|
|
+ <el-radio :label="2">{{$t('ReportManage.ReportList.price_curve_radio')}}</el-radio>
|
|
|
+ <el-radio :label="3">{{$t('ReportManage.ReportList.related_charts_radio')}}</el-radio>
|
|
|
+ <el-radio :label="6">{{$t('ReportManage.ReportList.curve_fitting_radio')}}</el-radio>
|
|
|
+ <el-radio :label="7">{{$t('ReportManage.ReportList.statistical_feature_radio')}}</el-radio>
|
|
|
+ <el-radio :label="10">{{$t('ReportManage.ReportList.intercommodity_analysis_radio')}}</el-radio>
|
|
|
</el-radio-group>
|
|
|
<div style="margin: 10px 0">
|
|
|
- <el-checkbox v-model="isShowMe" @change="() => {search_page=1;$refs.chartListRef.scrollTop = 0;getreportlist(key_word)}">只看我的</el-checkbox>
|
|
|
+ <el-checkbox v-model="isShowMe" @change="() => {search_page=1;$refs.chartListRef.scrollTop = 0;getreportlist(key_word)}">{{$t('ReportManage.ReportList.just_mine_radio')}}</el-checkbox>
|
|
|
</div>
|
|
|
<div
|
|
|
id="reportwin"
|
|
@@ -209,12 +209,12 @@
|
|
|
/>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <tableNoData text="暂无图表" size="mini" v-else/>
|
|
|
+ <tableNoData :text="$t('ReportManage.ReportList.no_chart_table_available')" size="mini" v-else/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="tabsactive == '沙盘插入'">
|
|
|
<el-input
|
|
|
- placeholder="沙盘名称/品种"
|
|
|
+ :placeholder="$t('ReportManage.ReportList.no_reports_msg')"
|
|
|
v-model="sandTabelQuery.Keyword"
|
|
|
size="medium"
|
|
|
prefix-icon="el-icon-search"
|
|
@@ -245,12 +245,12 @@
|
|
|
<!-- <p class="source-identification">来源:弘则研究</p> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
- <tableNoData text="暂无数据" size="mini" v-else/>
|
|
|
+ <tableNoData :text="$t('Table.prompt_slogan')" size="mini" v-else/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="tabsactive == '表格插入'">
|
|
|
<el-input
|
|
|
- placeholder="表格名称"
|
|
|
+ :placeholder="$t('ReportManage.ReportList.table_name_tabs')"
|
|
|
v-model="sheetSearchObj.Keyword"
|
|
|
size="medium"
|
|
|
prefix-icon="el-icon-search"
|
|
@@ -280,7 +280,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
- <tableNoData text="暂无数据" size="mini" v-else/>
|
|
|
+ <tableNoData :text="$t('Table.prompt_slogan')" size="mini" v-else/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="tabsactive == 'MyETA批量插入'">
|
|
@@ -448,14 +448,17 @@ export default {
|
|
|
e.name.indexOf(".wma") == -1 &&
|
|
|
e.name.indexOf(".m4a") == -1
|
|
|
) {
|
|
|
- this.$message.warning("上传失败,上传音频格式不正确");
|
|
|
+ // this.$message.warning("上传失败,上传音频格式不正确");
|
|
|
+ this.$message.warning(this.$t('ReportManage.ReportList.upload_audio_error_msg'));
|
|
|
+ upload_audio_error_msg
|
|
|
return false;
|
|
|
}
|
|
|
},
|
|
|
async handleUpload(e) {
|
|
|
const duration = await this.handleGetDuration(e.file);
|
|
|
if (duration > 60 * 15) {
|
|
|
- this.$message.warning("音频时长不得超过15分钟");
|
|
|
+ //this.$message.warning("音频时长不得超过15分钟");
|
|
|
+ this.$message.warning(this.$t('ReportManage.ReportList.audio_minutes_exceed'));
|
|
|
return;
|
|
|
}
|
|
|
this.aeForm.audioDuration = duration;
|
|
@@ -561,7 +564,7 @@ export default {
|
|
|
if (!e && !this.ischange) return;
|
|
|
|
|
|
if (!this.autoSaveFlag) {
|
|
|
- e === "cg" && this.$message.error("有图片未上传完成,请稍等");
|
|
|
+ e === "cg" && this.$message.error(/*"有图片未上传完成,请稍等"*/this.$t('ReportManage.ReportList.upload_img_error_msg'));
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -602,7 +605,8 @@ export default {
|
|
|
// this.report_id = res.Data.ReportId;
|
|
|
this.lastsavetime = http.dateFormatter(new Date(), true);
|
|
|
if (e == "cg") {
|
|
|
- this.$message.success("保存成功");
|
|
|
+ // this.$message.success("保存成功");
|
|
|
+ this.$message.success( this.$t('MsgPrompt.saved_msg'));
|
|
|
}
|
|
|
}
|
|
|
this.ischange = false;
|
|
@@ -646,7 +650,7 @@ export default {
|
|
|
return false;
|
|
|
}
|
|
|
if (!this.autoSaveFlag) {
|
|
|
- this.$message.error("有图片未上传完成,请稍等");
|
|
|
+ this.$message.error(/*"有图片未上传完成,请稍等"*/this.$t('ReportManage.ReportList.upload_img_error_msg'));
|
|
|
return;
|
|
|
}
|
|
|
//如果富文本中有未上传完成的图片,去除这个dom
|
|
@@ -673,7 +677,7 @@ export default {
|
|
|
if (!validRes) return;
|
|
|
}
|
|
|
if (!this.autoSaveFlag) {
|
|
|
- this.$message.error("有图片未上传完成,请稍等");
|
|
|
+ this.$message.error(/*"有图片未上传完成,请稍等"*/this.$t('ReportManage.ReportList.upload_img_error_msg'));
|
|
|
return;
|
|
|
}
|
|
|
this.isPublishloading = true;
|
|
@@ -683,11 +687,11 @@ export default {
|
|
|
if (res.Ret === 200) {
|
|
|
if (res.Data) {
|
|
|
this.$confirm(
|
|
|
- "本期报告品种已全部更新,点击发布将同时发布周报,确认同时发布吗?",
|
|
|
- "发布提示",
|
|
|
+ this.$t('ReportManage.ReportList.all_update_publish_msg'),
|
|
|
+ this.$t('ReportManage.smart_release_prompt_btn'),
|
|
|
{
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
+ confirmButtonText: this.$t('ReportManage.smart_btn.push'),
|
|
|
+ cancelButtonText: this.$t('ReportManage.smart_btn.not_push'),
|
|
|
type: "warning",
|
|
|
distinguishCancelAndClose: true,
|
|
|
beforeClose: (action, instance, done) => {
|
|
@@ -711,9 +715,9 @@ export default {
|
|
|
// 周报校验是否上传了音频
|
|
|
handleWeekValidAudio() {
|
|
|
return new Promise((resovle, reject) => {
|
|
|
- this.$confirm("您还未上传录音文件,确定发布报告吗?", "发布提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
+ this.$confirm(this.$t('ReportManage.ReportList.is_publish_report_msg'), this.$t('ReportManage.smart_release_prompt_btn'), {
|
|
|
+ confirmButtonText: this.$t('ReportManage.smart_btn.push'),
|
|
|
+ cancelButtonText: this.$t('ReportManage.smart_btn.not_push'),
|
|
|
type: "warning",
|
|
|
beforeClose: (action, instance, done) => {
|
|
|
if (action == "confirm") {
|
|
@@ -762,7 +766,7 @@ export default {
|
|
|
VideoSize: Number(this.aeForm.audioSize).toFixed(2).toString(),
|
|
|
});
|
|
|
if (res.Ret === 200) {
|
|
|
- this.$message.success("发布成功");
|
|
|
+ this.$message.success(this.$t('MsgPrompt.publish_msg'))
|
|
|
setTimeout(() => {
|
|
|
this.$router.go(-1);
|
|
|
}, 1000);
|
|
@@ -828,9 +832,9 @@ export default {
|
|
|
this.sandTableList = List;
|
|
|
this.sandTableTotal = Paging.Totals;
|
|
|
if (this.sandTableList.length == 0) {
|
|
|
- this.loadedText = "暂无数据";
|
|
|
+ this.loadedText = this.$t('Table.prompt_slogan');
|
|
|
} else if (this.sandTableList.length >= this.sandTableTotal) {
|
|
|
- this.loadedText = "已全部加载完";
|
|
|
+ this.loadedText = this.$t('ReportManage.smart_msg.all_loaded_have');
|
|
|
} else {
|
|
|
}
|
|
|
}
|
|
@@ -843,7 +847,7 @@ export default {
|
|
|
// 沙盘列表滚动事件,触底加载下一页数据 防抖
|
|
|
sandTableHandleScroll: _.debounce(function (e) {
|
|
|
if (this.sandTableList.length >= this.sandTableTotal) {
|
|
|
- this.loadedText = "已全部加载完";
|
|
|
+ this.loadedText = this.$t('ReportManage.smart_msg.all_loaded_have');
|
|
|
return;
|
|
|
}
|
|
|
if (
|