|
@@ -9,7 +9,7 @@
|
|
|
type="primary"
|
|
|
size="medium"
|
|
|
@click="$router.push({ path: '/reportEnEditor' })"
|
|
|
- >添加研报</el-button
|
|
|
+ >{{$t('ReportManage.smart_add_report')}}</el-button
|
|
|
>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="">
|
|
@@ -19,7 +19,7 @@
|
|
|
size="medium"
|
|
|
:loading="isPull"
|
|
|
@click="handlePullReport"
|
|
|
- >同步策略报告</el-button>
|
|
|
+ >{{$t('ReportManage.smart_sync_policy_report')}}</el-button>
|
|
|
</el-form-item>
|
|
|
<!-- 整合的筛选项 -->
|
|
|
<el-form-item label="">
|
|
@@ -30,23 +30,23 @@
|
|
|
popper-class="report-select-popover"
|
|
|
width="320" style="display: inline-block;">
|
|
|
<div class="select-wrap">
|
|
|
- <p>筛选项</p>
|
|
|
+ <p>{{$t('ReportManage.smart_filter_options')}}</p>
|
|
|
<div class="select-item">
|
|
|
<el-select
|
|
|
v-model="searchform.timeType"
|
|
|
- placeholder="选择时间类型"
|
|
|
+ :placeholder="$t('ReportManage.smart_select_time_type_btn')"
|
|
|
size="medium"
|
|
|
style="width:100%;"
|
|
|
>
|
|
|
- <el-option label="发布时间" value="publish_time"></el-option>
|
|
|
- <el-option label="审批时间" value="approve_time"></el-option>
|
|
|
- <el-option label="更新时间" value="modify_time"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.smart_publish_time')" value="publish_time"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.smart_approval_time')" value="approve_time"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.smart_update_time')" value="modify_time"></el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<div class="select-item">
|
|
|
<el-select
|
|
|
v-model="searchform.frequency"
|
|
|
- placeholder="更新频度筛选"
|
|
|
+ :placeholder="$t('ReportManage.smart_update_frequency_filter')"
|
|
|
size="medium"
|
|
|
clearable
|
|
|
style="width:100%;"
|
|
@@ -64,43 +64,43 @@
|
|
|
}"
|
|
|
v-model="searchform.classifynameArr"
|
|
|
clearable
|
|
|
- placeholder="类型筛选"
|
|
|
+ :placeholder="$t('ReportManage.smart_type_filtering')"
|
|
|
style="width:100%;"
|
|
|
></el-cascader>
|
|
|
</div>
|
|
|
<div class="select-item">
|
|
|
<el-select
|
|
|
v-model.number="searchform.publishState"
|
|
|
- placeholder="发布筛选"
|
|
|
+ :placeholder="$t('ReportManage.smart_publish_filter_select')"
|
|
|
size="medium"
|
|
|
clearable
|
|
|
style="width:100%;"
|
|
|
>
|
|
|
- <el-option label="未发布" :value="1" v-if="!isOtherApprove"></el-option>
|
|
|
- <el-option label="已发布" :value="2"></el-option>
|
|
|
- <el-option label="待提交" :value="3" v-if="isApprove"></el-option>
|
|
|
- <el-option label="待审批" :value="4" v-if="isApprove"></el-option>
|
|
|
- <el-option label="已驳回" :value="5"></el-option>
|
|
|
- <el-option label="已通过" :value="6"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.smart_unpublished')" :value="1" v-if="!isOtherApprove"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.smart_published')" :value="2"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.smart_pending')" :value="3" v-if="isApprove"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.smart_awaiting_approval')" :value="4" v-if="isApprove"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.smart_rejected')" :value="5"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.smart_approved')" :value="6"></el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<div class="select-item">
|
|
|
<el-select
|
|
|
v-permission="permissionBtn.enReportManageBtn.enReport_sendEmail"
|
|
|
v-model.number="searchform.EmailState"
|
|
|
- placeholder="群发状态筛选"
|
|
|
+ :placeholder="$t('ReportManage.smart_status_filtering_select')"
|
|
|
size="medium"
|
|
|
clearable
|
|
|
style="width:100%;"
|
|
|
>
|
|
|
- <el-option label="未群发邮件" :value="1"></el-option>
|
|
|
- <el-option label="已群发邮件" :value="2"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.smart_emails_unsent_option')" :value="1"></el-option>
|
|
|
+ <el-option :label="$t('ReportManage.smart_emails_sents_option')" :value="2"></el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="select-btn" slot="reference">
|
|
|
<img src="~@/assets/icons/filter.svg">
|
|
|
- <span>筛选条件</span>
|
|
|
+ <span>{{$t('ReportManage.smart_filtering_criteria')}}</span>
|
|
|
<span class="select-num">+{{selectNum}}</span>
|
|
|
</div>
|
|
|
</el-popover>
|
|
@@ -120,7 +120,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item style="margin-left:auto;">
|
|
|
<el-input
|
|
|
- placeholder="标题 / 创建人"
|
|
|
+ :placeholder="$t('ReportManage.smart_title_creator_btn')"
|
|
|
v-model="searchform.key_word"
|
|
|
clearable
|
|
|
size="medium"
|
|
@@ -136,7 +136,7 @@
|
|
|
border
|
|
|
:data="tableData"
|
|
|
v-loading="listLoading"
|
|
|
- element-loading-text="加载中..."
|
|
|
+ :element-loading-text="$i18n.locale == 'zh'?'加载中...':'Loading'"
|
|
|
style="margin-top: 20px"
|
|
|
>
|
|
|
<el-table-column
|
|
@@ -158,7 +158,7 @@
|
|
|
</el-tooltip>
|
|
|
</span>
|
|
|
<span v-else-if="item.key==='PublishTime'">
|
|
|
- 发布/审批时间
|
|
|
+ {{$t('ReportManage.smart_release_approval_time')}}
|
|
|
</span>
|
|
|
<span v-else>{{ item.label }}</span>
|
|
|
</template>
|
|
@@ -172,12 +172,12 @@
|
|
|
<!-- <span v-if="row.ClassifyNameSecond">/ {{row.ClassifyNameSecond}}</span> -->
|
|
|
</span>
|
|
|
<span v-else-if="item.key==='State'" :style="row.State===2 && 'color:#46C371;'">
|
|
|
- <span v-if="row.State == '1'">未发布</span>
|
|
|
- <span v-if="row.State == '2'">已发布</span>
|
|
|
- <span v-if="row.State == '3'">待提交</span>
|
|
|
- <span v-if="row.State == '4'">待审批</span>
|
|
|
- <span v-if="row.State == '5'">已驳回</span>
|
|
|
- <span v-if="row.State == '6'">已通过</span>
|
|
|
+ <span v-if="row.State == '1'">{{$t('ReportManage.smart_unpublished')}}</span>
|
|
|
+ <span v-if="row.State == '2'">{{$t('ReportManage.smart_published')}}</span>
|
|
|
+ <span v-if="row.State == '3'">{{$t('ReportManage.smart_pending')}}</span>
|
|
|
+ <span v-if="row.State == '4'">{{$t('ReportManage.smart_awaiting_approval')}}</span>
|
|
|
+ <span v-if="row.State == '5'">{{$t('ReportManage.smart_rejected')}}</span>
|
|
|
+ <span v-if="row.State == '6'">{{$t('ReportManage.smart_approved')}}</span>
|
|
|
</span>
|
|
|
<span v-else-if="item.key==='Stage'">第{{row.Stage}}期</span>
|
|
|
<span v-else-if="item.key==='Pv'" style="cursor:pointer; color:#4099ef;" >
|
|
@@ -208,71 +208,45 @@
|
|
|
已驳回——撤销 -->
|
|
|
<template v-if="[1,3].includes(row.State)">
|
|
|
<span class="editsty" @click="reportHandle(row,'publish')" v-if="row.CanEdit&&row.State===1
|
|
|
- &&permissionBtn.isShowBtn('enReportManageBtn','enReport_publish')">发布</span>
|
|
|
+ &&permissionBtn.isShowBtn('enReportManageBtn','enReport_publish')">{{$t('ReportManage.smart_btn.publish')}}</span>
|
|
|
<span class="editsty" @click="handleSubmitReport(row)" v-if="row.CanEdit&&row.State===3
|
|
|
- &&permissionBtn.isShowBtn('enReportManageBtn','enReport_publish')">提交</span>
|
|
|
+ &&permissionBtn.isShowBtn('enReportManageBtn','enReport_publish')">{{$t('ReportManage.smart_btn.submission')}}</span>
|
|
|
<span v-permission="permissionBtn.enReportManageBtn.enReport_reportEdit" class="editsty"
|
|
|
@click="reportHandle(row,'edit')" v-if="row.CanEdit">编辑</span>
|
|
|
<span v-permission="permissionBtn.enReportManageBtn.enReport_reportEdit" class="editsty"
|
|
|
- @click="reportHandle(row,'edit')" v-else>{{row.Editor||''}}编辑中...</span>
|
|
|
+ @click="reportHandle(row,'edit')" v-else>{{row.Editor||''}}{{$t('ReportManage.smart_btn.editing')}}</span>
|
|
|
<span v-permission="permissionBtn.enReportManageBtn.enReport_reportDel" class="deletesty"
|
|
|
@click="reportHandle(row,'del')" v-if="row.CanEdit">删除</span>
|
|
|
</template>
|
|
|
<template v-if="[2,6].includes(row.State)">
|
|
|
<span
|
|
|
v-if="permissionBtn.isShowBtn('enReportManageBtn','enReport_cancelPublish')&&row.State===2"
|
|
|
- @click="reportHandle(row,'cancelPublish')" class="deletesty">撤销</span><!-- 取消发布 -->
|
|
|
+ @click="reportHandle(row,'cancelPublish')" class="deletesty">{{$t('ReportManage.smart_btn.withdraw')}}</span><!-- 取消发布 -->
|
|
|
<span
|
|
|
v-if="permissionBtn.isShowBtn('enReportManageBtn','enReport_cancelPublish')&&row.State===6"
|
|
|
- @click="cancelApprove(row)" class="deletesty">撤销</span>
|
|
|
+ @click="cancelApprove(row)" class="deletesty">{{$t('ReportManage.smart_btn.withdraw')}}</span>
|
|
|
<span
|
|
|
v-if="row.EmailState===0&&row.EmailAuth&&permissionBtn.checkPermissionBtn(permissionBtn.enReportManageBtn.enReport_sendEmail)"
|
|
|
- class="editsty copylink" @click="reportHandle(row,'sendEmail')">群发邮件</span>
|
|
|
+ class="editsty copylink" @click="reportHandle(row,'sendEmail')">{{$t('ReportManage.smart_btn.send_email')}}</span>
|
|
|
|
|
|
<span class="editsty copylink"
|
|
|
v-if="row.EmailState===1&&row.EmailAuth&&permissionBtn.checkPermissionBtn(permissionBtn.enReportManageBtn.enReport_sendEmail)"
|
|
|
@click="reportHandle(row,'view-log')" style="position: relative;">
|
|
|
- 群发日志
|
|
|
+ {{$t('ReportManage.smart_btn.send_log')}}
|
|
|
<span class="warn-tag" v-if="row.EmailHasFail"></span>
|
|
|
</span>
|
|
|
</template>
|
|
|
<template v-if="[4,5].includes(row.State)">
|
|
|
<span v-if="permissionBtn.isShowBtn('enReportManageBtn','enReport_cancelPublish')"
|
|
|
- @click="cancelApprove(row)" class="deletesty">撤销</span>
|
|
|
+ @click="cancelApprove(row)" class="deletesty">{{$t('ReportManage.smart_btn.withdraw')}}</span>
|
|
|
</template>
|
|
|
-
|
|
|
- <!-- <template v-if="row.State===1">
|
|
|
- <span class="editsty" v-permission="permissionBtn.enReportManageBtn.enReport_publish"
|
|
|
- @click="reportHandle(row,'publish')" v-if="row.CanEdit">发布</span>
|
|
|
- <span v-permission="permissionBtn.enReportManageBtn.enReport_reportEdit" class="editsty"
|
|
|
- @click="reportHandle(row,'edit')" v-if="row.CanEdit">编辑</span>
|
|
|
- <span v-permission="permissionBtn.enReportManageBtn.enReport_reportEdit" class="editsty"
|
|
|
- @click="reportHandle(row,'edit')" v-else>{{row.Editor||''}}编辑中...</span>
|
|
|
- <span v-permission="permissionBtn.enReportManageBtn.enReport_reportDel" class="deletesty"
|
|
|
- @click="reportHandle(row,'del')" v-if="row.CanEdit">删除</span>
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- <span
|
|
|
- v-if="permissionBtn.checkPermissionBtn(permissionBtn.enReportManageBtn.enReport_cancelPublish)"
|
|
|
- @click="reportHandle(row,'cancelPublish')" class="deletesty">取消发布</span>
|
|
|
- <span
|
|
|
- v-if="row.EmailState===0&&row.EmailAuth&&permissionBtn.checkPermissionBtn(permissionBtn.enReportManageBtn.enReport_sendEmail)"
|
|
|
- class="editsty copylink" @click="reportHandle(row,'sendEmail')">群发邮件</span>
|
|
|
-
|
|
|
- <span class="editsty copylink"
|
|
|
- v-if="row.EmailState===1&&row.EmailAuth&&permissionBtn.checkPermissionBtn(permissionBtn.enReportManageBtn.enReport_sendEmail)"
|
|
|
- @click="reportHandle(row,'view-log')" style="position: relative;">
|
|
|
- 群发日志
|
|
|
- <span class="warn-tag" v-if="row.EmailHasFail"></span>
|
|
|
- </span>
|
|
|
- </template> -->
|
|
|
- </span>
|
|
|
+ </span>
|
|
|
|
|
|
<span v-else>{{ row[item.key] || '' }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<div slot="empty" style="padding: 100px 0">
|
|
|
- <tableNoData text="暂无数据" size="mini"/>
|
|
|
+ <tableNoData :text="$t('Table.prompt_slogan')" size="mini"/>
|
|
|
</div>
|
|
|
</el-table>
|
|
|
|
|
@@ -292,11 +266,11 @@
|
|
|
:append-to-body="true"
|
|
|
:visible.sync="popData.show"
|
|
|
width="900px"
|
|
|
- title="群发邮件"
|
|
|
+ :title="$t('ReportManage.smart_btn.send_email')"
|
|
|
>
|
|
|
<div class="send-email-wrap">
|
|
|
<el-form ref="form" :model="popData" label-width="100px">
|
|
|
- <el-form-item label="邮件主题:">
|
|
|
+ <el-form-item :label="$t('ReportManage.ReportList.email_subject_btn')">
|
|
|
<div>
|
|
|
<el-input
|
|
|
placeholder="请输入邮件主题"
|
|
@@ -308,7 +282,7 @@
|
|
|
></el-input>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="收件人:">
|
|
|
+ <el-form-item :label="$t('ReportManage.ReportList.Recipient_btn')">
|
|
|
<div class="addressee-box">
|
|
|
<div class="addressee-cancel-box">
|
|
|
<el-cascader
|
|
@@ -323,16 +297,16 @@
|
|
|
label:'EnPermissionName',
|
|
|
children:'Child'
|
|
|
}"
|
|
|
- placeholder="请选择品种权限"
|
|
|
+ :placeholder="$t('ReportManage.ReportList.select_variety_permission')"
|
|
|
style="margin-bottom: 10px;"
|
|
|
/>
|
|
|
- <div class="user-box-hint">取消发送客户信息:</div>
|
|
|
+ <div class="user-box-hint">{{$t('ReportManage.ReportList.sending_customer_information')}}</div>
|
|
|
<el-select
|
|
|
v-model="popData.customValue"
|
|
|
multiple
|
|
|
filterable
|
|
|
collapse-tags
|
|
|
- placeholder="请选择客户"
|
|
|
+ :placeholder="$t('ReportManage.ReportList.select_customer')"
|
|
|
value-key="CompanyId">
|
|
|
<el-option
|
|
|
v-for="item in popData.customOptions"
|
|
@@ -363,15 +337,15 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="addressee-append-box">
|
|
|
- <el-checkbox v-model="popData.checkUser" style="margin:0 0 10px 20px;width: 100px;">指定人员</el-checkbox>
|
|
|
- <div class="user-box-hint" v-show="popData.checkUser">指定发送人员信息:</div>
|
|
|
+ <el-checkbox v-model="popData.checkUser" style="margin:0 0 10px 20px;width: 100px;">{{$t('ReportManage.ReportList.designated_personnel')}}</el-checkbox>
|
|
|
+ <div class="user-box-hint" v-show="popData.checkUser">{{$t('ReportManage.ReportList.designated_sender_information')}}</div>
|
|
|
<el-select
|
|
|
v-show="popData.checkUser"
|
|
|
v-model="popData.value"
|
|
|
multiple
|
|
|
filterable
|
|
|
collapse-tags
|
|
|
- placeholder="请选择人员"
|
|
|
+ :placeholder="$t('ReportManage.ReportList.please_select_personnel')"
|
|
|
value-key="Id">
|
|
|
<el-option
|
|
|
v-for="item in popData.options"
|
|
@@ -404,8 +378,8 @@
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
<div style="text-align:center;margin-bottom:30px;margin-top:40px">
|
|
|
- <el-button type="primary" plain style="margin-right:10px" @click="popData.show=false">取消</el-button>
|
|
|
- <el-button type="primary" @click="handleConfirmSendEmail">确定</el-button>
|
|
|
+ <el-button type="primary" plain style="margin-right:10px" @click="popData.show=false">{{$t('Dialog.cancel_btn')}}</el-button>
|
|
|
+ <el-button type="primary" @click="handleConfirmSendEmail">{{$t('Dialog.confirm_btn')}}</el-button>
|
|
|
</div>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -417,14 +391,14 @@
|
|
|
:append-to-body="true"
|
|
|
:visible.sync="PVData.show"
|
|
|
width="900px"
|
|
|
- title="点击量详情"
|
|
|
+ :title="$t('ReportManage.ReportList.click_through_details')"
|
|
|
>
|
|
|
<div class="pv-static-wrap" style="padding-bottom:70px">
|
|
|
<el-table :data="PVData.list" border height="600">
|
|
|
- <el-table-column align="center" prop="Name" label="客户名称"></el-table-column>
|
|
|
- <el-table-column align="center" prop="Email" label="邮箱地址"></el-table-column>
|
|
|
- <el-table-column align="center" prop="RecentClickTime" label="最近点击时间"></el-table-column>
|
|
|
- <el-table-column align="center" prop="ClickNum" label="点击量"></el-table-column>
|
|
|
+ <el-table-column align="center" prop="Name" :label="$t('ReportManage.ReportList.click_through_details')"></el-table-column>
|
|
|
+ <el-table-column align="center" prop="Email" :label="$t('ReportManage.ReportList.email_address')"></el-table-column>
|
|
|
+ <el-table-column align="center" prop="RecentClickTime" :label="$t('ReportManage.ReportList.Last_click_time')"></el-table-column>
|
|
|
+ <el-table-column align="center" prop="ClickNum" :label="$t('ReportManage.ReportList.hits_btn')"></el-table-column>
|
|
|
</el-table>
|
|
|
<el-pagination
|
|
|
layout="total,prev,pager,next,jumper"
|