|
@@ -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)"
|
|
|
>
|
|
@@ -26,7 +26,7 @@
|
|
|
"
|
|
|
>
|
|
|
<div v-show="lastsavetime" style="color: #666; margin-bottom: 15px">
|
|
|
- 最近保存时间:{{ lastsavetime }}
|
|
|
+ {{$t('ReportManage.ReportList.last_save_time')}}:{{ lastsavetime }}
|
|
|
</div>
|
|
|
<el-button
|
|
|
type="primary"
|
|
@@ -34,21 +34,21 @@
|
|
|
plain
|
|
|
@click.native="refreshReport"
|
|
|
>
|
|
|
- 一键刷新
|
|
|
+ {{$t('ReportManage.ReportList.click_refresh_btn')}}
|
|
|
</el-button>
|
|
|
<el-button v-permission="permissionBtn.reportManageBtn.reportManage_reportView"
|
|
|
type="primary"
|
|
|
size="medium"
|
|
|
plain
|
|
|
@click.native="clickreportadd('yl')"
|
|
|
- >预览</el-button
|
|
|
+ >{{$t('ReportManage.ReportList.preview_btn')}}</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
size="medium"
|
|
|
plain
|
|
|
@click.native="clickreportadd('cg')"
|
|
|
- >存草稿</el-button
|
|
|
+ >{{$t('ReportManage.ReportList.save_draft_btn')}}</el-button
|
|
|
>
|
|
|
<!--不走审批流-->
|
|
|
<template v-if="!isApprove||!hasApproveFlow">
|
|
@@ -57,7 +57,7 @@
|
|
|
size="medium"
|
|
|
:disabled="checkLoading"
|
|
|
@click.native="clickreportadd('dsfb')"
|
|
|
- >定时发布</el-button
|
|
|
+ >{{$t('ReportManage.ReportList.scheduled_publish_btn')}}</el-button
|
|
|
>
|
|
|
<el-button v-permission="permissionBtn.reportManageBtn.reportManage_publish"
|
|
|
type="primary"
|
|
@@ -65,13 +65,13 @@
|
|
|
:disabled="checkLoading"
|
|
|
@click.native="clickreportadd('fb')"
|
|
|
:loading="isPublishloading"
|
|
|
- >发布</el-button
|
|
|
+ >{{$t('ReportManage.ReportList.publish_btn')}}</el-button
|
|
|
>
|
|
|
</template>
|
|
|
<template v-if="isApprove&&hasApproveFlow">
|
|
|
<el-button v-permission="permissionBtn.reportManageBtn.reportManage_publish"
|
|
|
:disabled="checkLoading"
|
|
|
- type="primary" size="medium" @click="clickreportadd('submit')">提交</el-button>
|
|
|
+ type="primary" size="medium" @click="clickreportadd('submit')">{{$t('ReportManage.ReportList.submission_btn')}}</el-button>
|
|
|
</template>
|
|
|
</div>
|
|
|
<div
|
|
@@ -84,7 +84,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 == '基础信息'"
|
|
@@ -100,52 +100,52 @@
|
|
|
id="login-container"
|
|
|
@submit.native.prevent
|
|
|
>
|
|
|
- <el-form-item prop="add_type" label="新增方式">
|
|
|
+ <el-form-item prop="add_type" :label="$t('ReportManage.ReportList.new_method_btn')">
|
|
|
<el-select
|
|
|
v-model="aeForm.add_type"
|
|
|
@change="userclassidreportdetail"
|
|
|
- placeholder="请选择"
|
|
|
+ :placeholder="$t('ReportManage.CategoryList.please_select')"
|
|
|
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="classifynameArr" label="分类">
|
|
|
+ <el-form-item prop="classifynameArr" :label="$t('ReportManage.ReportList.classificiation_selest')">
|
|
|
<el-cascader
|
|
|
@change="userclassidreportdetail"
|
|
|
ref="cascader"
|
|
|
:options="optionsArr"
|
|
|
v-model="aeForm.classifynameArr"
|
|
|
- placeholder="类型筛选"
|
|
|
+ :placeholder="$t('ReportManage.smart_type_filtering')"
|
|
|
size="medium"
|
|
|
style="width: 270px"
|
|
|
></el-cascader>
|
|
|
</el-form-item>
|
|
|
- <el-form-item prop="title" label="标题">
|
|
|
+ <el-form-item prop="title" :label="$t('ReportManage.ReportList.title_ipt')">
|
|
|
<el-input
|
|
|
type="textarea"
|
|
|
:rows="2"
|
|
|
- placeholder="请输入"
|
|
|
+ :placeholder="$t('ReportManage.CategoryList.please_input')"
|
|
|
v-model="aeForm.title"
|
|
|
size="medium"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="摘要">
|
|
|
+ <el-form-item :label="$t('ReportManage.ReportList.abstract_ipt')">
|
|
|
<el-input
|
|
|
type="textarea"
|
|
|
:rows="2"
|
|
|
- placeholder="请输入"
|
|
|
+ :placeholder="$t('ReportManage.CategoryList.please_input')"
|
|
|
v-model="aeForm.abstract"
|
|
|
size="medium"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="作者">
|
|
|
+ <el-form-item :label="$t('ReportManage.ReportList.author_select')">
|
|
|
<el-select
|
|
|
v-model="aeForm.author"
|
|
|
multiple
|
|
|
- placeholder="请选择"
|
|
|
+ :placeholder="$t('ReportManage.CategoryList.please_select')"
|
|
|
size="medium"
|
|
|
style="width: 270px"
|
|
|
>
|
|
@@ -157,29 +157,29 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="频度">
|
|
|
+ <el-form-item :label="$t('ReportManage.ReportList.frequency_select')">
|
|
|
<el-select
|
|
|
v-model="aeForm.frequency"
|
|
|
- placeholder="请选择"
|
|
|
+ :placeholder="$t('ReportManage.CategoryList.please_select')"
|
|
|
size="medium"
|
|
|
style="width: 270px"
|
|
|
>
|
|
|
- <el-option label="年度" value="年度"></el-option>
|
|
|
- <el-option label="半年度" value="半年度"></el-option>
|
|
|
- <el-option label="季度" value="季度"></el-option>
|
|
|
- <el-option label="月度" value="月度"></el-option>
|
|
|
- <el-option label="双周度" value="双周度"></el-option>
|
|
|
- <el-option label="周度" value="周度"></el-option>
|
|
|
- <el-option label="日度" value="日度"></el-option>
|
|
|
- <el-option label="不定时" value="不定时"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.smart_annually')" :value="$t('ReportManage.smart_annually')"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.smart_semi_annually')" :value="$t('ReportManage.smart_semi_annually')"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.smart_quarterly')" :value="$t('ReportManage.smart_quarterly')"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.smart_monthly')" :value="$t('ReportManage.smart_monthly')"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.smart_bi_weekly')" :value="$t('ReportManage.smart_bi_weekly')"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.smart_weekly')" :value="$t('ReportManage.smart_weekly')"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.smart_daily')" :value="$t('ReportManage.smart_daily')"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.smart_irregularly')" :value="$t('ReportManage.smart_irregularly')"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="创建时间">
|
|
|
+ <el-form-item :label="$t('ReportManage.ReportList.creation_time_select')">
|
|
|
<el-date-picker
|
|
|
v-model="aeForm.create_time"
|
|
|
type="date"
|
|
|
value-format="yyyy-MM-dd"
|
|
|
- placeholder="选择日期"
|
|
|
+ :placeholder="$t('ReportManage.ReportList.select_date')"
|
|
|
size="medium"
|
|
|
:clearable="false"
|
|
|
style="width: 270px"
|
|
@@ -189,7 +189,7 @@
|
|
|
</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"
|
|
@@ -197,15 +197,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"
|
|
@@ -234,13 +234,13 @@
|
|
|
</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"
|
|
@@ -271,12 +271,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"
|
|
@@ -306,7 +306,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批量插入'">
|
|
@@ -331,23 +331,23 @@
|
|
|
:append-to-body="true"
|
|
|
:visible.sync="showDSFB"
|
|
|
width="500px"
|
|
|
- title="定时发布"
|
|
|
+ :title="$t('ReportManage.ReportList.scheduled_publish_btn')"
|
|
|
>
|
|
|
<div>
|
|
|
<div>
|
|
|
- <span>发送时间</span>
|
|
|
+ <span>{{$t('ReportManage.ReportList.publish_time')}}</span>
|
|
|
<el-date-picker
|
|
|
v-model="taskTime"
|
|
|
type="datetime"
|
|
|
- placeholder="选择日期时间"
|
|
|
+ :placeholder="$t('ReportManage.ReportList.select_date_and_time')"
|
|
|
value-format="yyyy-MM-dd HH:mm"
|
|
|
:picker-options="timePickerOpt"
|
|
|
/>
|
|
|
</div>
|
|
|
- <p style="margin:15px 0">设置成功之后,研报将定时进行发送。</p>
|
|
|
+ <p style="margin:15px 0">{{$t('ReportManage.ReportList.the_report_will_be_posted_on_time')}}</p>
|
|
|
<div style="text-align:right;margin:20px 0">
|
|
|
- <el-button type="primary" plain @click="showDSFB=false">取消</el-button>
|
|
|
- <el-button type="primary" @click="handleSetReportPrepublish">确定</el-button>
|
|
|
+ <el-button type="primary" plain @click="showDSFB=false">{{$t('Dialog.cancel_btn')}}</el-button>
|
|
|
+ <el-button type="primary" @click="handleSetReportPrepublish">{{$t('Dialog.confirm_btn')}}</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
@@ -556,7 +556,7 @@ export default {
|
|
|
classifyIdDetail(params).then((res) => {
|
|
|
if (res.Ret == 200) {
|
|
|
if (res.Data == null) {
|
|
|
- this.$message.error('此分类暂无报告');
|
|
|
+ this.$message.error(this.$t('ReportManage.ReportList.no_reports_msg'));
|
|
|
return false;
|
|
|
}
|
|
|
let obj=JSON.parse(JSON.stringify(this.aeForm.classifynameArr))
|
|
@@ -583,15 +583,15 @@ export default {
|
|
|
!this.aeForm.classifynameArr ||
|
|
|
this.aeForm.classifynameArr.length == 0
|
|
|
) {
|
|
|
- this.$message.error('请选择分类');
|
|
|
+ this.$message.error(this.$t('ReportManage.ReportList.please_select_category'));
|
|
|
return false;
|
|
|
}
|
|
|
if (!this.aeForm.title) {
|
|
|
- this.$message.error('请输入标题');
|
|
|
+ this.$message.error(this.$t('ReportManage.ReportList.input_title_please'));
|
|
|
return false;
|
|
|
}
|
|
|
if(!this.autoSaveFlag){
|
|
|
- this.$message.error('有图片未上传完成,请稍等')
|
|
|
+ this.$message.error(this.$t('ReportManage.smart_msg.img_wait'))
|
|
|
return false
|
|
|
}
|
|
|
//如果富文本中有未上传完成的图片,去除这个dom
|
|
@@ -665,9 +665,9 @@ export default {
|
|
|
this.isMessagePost = false;
|
|
|
this.reporteditMsg(params2,tp)
|
|
|
}else if(isPost){
|
|
|
- this.$confirm('发布后,是否推送模板消息?', '发布提示', {
|
|
|
- confirmButtonText: '推送',
|
|
|
- cancelButtonText: '不推送',
|
|
|
+ this.$confirm(this.$t('ReportManage.smart_msg.publishing_messages'), this.$t('ReportManage.smart_release_prompt_btn'), {
|
|
|
+ confirmButtonText: this.$t('ReportManage.smart_btn.push'),
|
|
|
+ cancelButtonText: this.$t('ReportManage.smart_btn.not_push'),
|
|
|
type: 'warning',
|
|
|
distinguishCancelAndClose:true,
|
|
|
beforeClose:(action, instance,done)=>{
|
|
@@ -702,9 +702,9 @@ export default {
|
|
|
this.isMessagePost = false;
|
|
|
this.reportaddMsg(params,tp)
|
|
|
}else if(isPost){
|
|
|
- this.$confirm('发布后,是否推送模板消息?', '发布提示', {
|
|
|
- confirmButtonText: '推送',
|
|
|
- cancelButtonText: '不推送',
|
|
|
+ this.$confirm(this.$t('ReportManage.smart_msg.publishing_messages'), this.$t('ReportManage.ReportList.smart_release_prompt_btn'), {
|
|
|
+ confirmButtonText: this.$t('ReportManage.smart_btn.push'),
|
|
|
+ cancelButtonText: this.$t('ReportManage.smart_btn.not_push'),
|
|
|
type: 'warning',
|
|
|
distinguishCancelAndClose:true,
|
|
|
beforeClose:(action, instance,done)=>{
|
|
@@ -746,21 +746,20 @@ export default {
|
|
|
// 定时发布报告
|
|
|
handleSetReportPrepublish(){
|
|
|
if(!this.taskTime){
|
|
|
- this.$message.warning('请选择定时发布的时间')
|
|
|
+ this.$message.warning(this.$t('ReportManage.smart_msg.select_push_time'))
|
|
|
return
|
|
|
}
|
|
|
const now=this.$moment().format('YYYY-MM-DD HH:mm:ss')
|
|
|
console.log(now);
|
|
|
console.log(this.taskTime);
|
|
|
if(this.$moment(this.taskTime).isBefore(now,'second')){
|
|
|
- this.$message.warning('定时发布不得早于当前时间')
|
|
|
+ this.$message.warning(this.$t('ReportManage.smart_msg.than_current_time'))
|
|
|
return
|
|
|
}
|
|
|
- console.log('定时去发布了');
|
|
|
const isPost = this.permissionBtn.checkPermissionBtn(this.permissionBtn.reportManageBtn.reportManage_sendMsg)
|
|
|
- this.$confirm(isPost?'是否发布定时报告,并推送模板消息?':'是否发布定时报告?', '发布提示', {
|
|
|
- confirmButtonText: isPost?'推送':'发布',
|
|
|
- cancelButtonText: isPost?'不推送':'取消',
|
|
|
+ this.$confirm(isPost?this.$t('ReportManage.smart_msg.push_report_msg'):this.$t('ReportManage.smart_msg.is_push_timed'), this.$t('ReportManage.ReportList.smart_release_prompt_btn'), {
|
|
|
+ confirmButtonText: isPost?this.$t('ReportManage.smart_btn.push'):this.$t('ReportManage.smart_btn.publish'),
|
|
|
+ cancelButtonText: isPost?this.$t('ReportManage.smart_btn.not_push'):this.$t('Dialog.cancel_btn'),
|
|
|
type: 'warning',
|
|
|
distinguishCancelAndClose:true,
|
|
|
beforeClose:(action, instance,done)=>{
|
|
@@ -774,7 +773,7 @@ export default {
|
|
|
PreMsgSend:0,
|
|
|
}).then(res=>{
|
|
|
if(res.Ret===200){
|
|
|
- this.$message.success('定时发布成功!')
|
|
|
+ this.$message.success(this.$t('ReportManage.smart_msg.timed_success'))
|
|
|
this.$router.push({ path: '/reportlist' });
|
|
|
}
|
|
|
})
|
|
@@ -787,7 +786,7 @@ export default {
|
|
|
PreMsgSend:isPost?1:0,
|
|
|
}).then(res=>{
|
|
|
if(res.Ret===200){
|
|
|
- this.$message.success('定时发布成功!')
|
|
|
+ this.$message.success(this.$t('ReportManage.smart_msg.timed_success'))
|
|
|
this.$router.push({ path: '/reportlist' });
|
|
|
}
|
|
|
})
|
|
@@ -835,7 +834,6 @@ export default {
|
|
|
let ifm=document.getElementById(item.domId)
|
|
|
ifm.onload=(e)=>{
|
|
|
this.importChartNum--
|
|
|
- console.log('一个iframe加载了',e.path[0]);
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -851,9 +849,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{
|
|
|
|
|
|
}
|
|
@@ -867,7 +865,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(e.target.scrollHeight-e.target.clientHeight-e.target.scrollTop<10 && !this.isRequesting){
|
|
@@ -925,7 +923,7 @@ export default {
|
|
|
title: '',
|
|
|
abstract: '',
|
|
|
author: ['FICC团队'],
|
|
|
- frequency: '日度',
|
|
|
+ frequency: this.$t('ReportManage.smart_daily'),
|
|
|
create_time: http.dateFormatter(new Date(), false),
|
|
|
content: '',
|
|
|
};
|