瀏覽代碼

页面完成一半

bding 1 年之前
父節點
當前提交
1424cd585a

+ 26 - 1
src/lang/modules/ReportManagement/ReportList.js

@@ -6,11 +6,36 @@
 export const ReportListEn = {
   add_morning_weekly_btn: "Add morning/weekly reports",
   download_data_btn: "Download reading data",
-
+  email_subject_btn: "Email subject:",
+  Recipient_btn: "Recipient:",
+  select_variety_permission: "Please select variety permission",
+  sending_customer_information: "Cancel sending customer information:",
+  select_customer: "Please select a customer",
+  designated_personnel: "Designated personnel",
+  designated_sender_information: "Designated sender information:",
+  please_select_personnel: "Please select personnel",
+  click_through_details: "点击量详情 Click through details",
+  customer_name: "Customer Name",
+  email_address: "e-mail address",
+  Last_click_time: "Last click time",
+  hits_btn: "Hits",
 };
 
 /* 中文 */
 export const ReportListZh = {
   add_morning_weekly_btn: "添加晨报/周报",
   download_data_btn: "下载阅读数据",
+  email_subject_btn: "邮件主题:",
+  Recipient_btn: "收件人:",
+  select_variety_permission: "请选择品种权限",
+  sending_customer_information: "取消发送客户信息:",
+  select_customer: "请选择客户",
+  designated_personnel: "指定人员",
+  designated_sender_information: "指定发送人员信息:",
+  please_select_personnel: "请选择人员",
+  click_through_details: "点击量详情 Click through details",
+  click_through_details: "客户名称",
+  email_address: "邮箱地址",
+  Last_click_time: "最近点击时间",
+  hits_btn: "点击量",
 };

+ 50 - 2
src/lang/modules/ReportManagement/SmartReport.js

@@ -31,7 +31,7 @@ export const SmartReportEn = {
   smart_report_title: "Report title",
   smart_select_time_type_btn: "Select time type",
   smart_notification_status_btn: "Notification Status",
-  smart_notification_pushed: "Notification Yet Pushed",
+  smart_notification_yet_pushed: "Notification Yet Pushed",
   smart_notification_pushed: "Notification Pushed",
   smart_filtering_criteria_btn: "Filtering criteria",
   smart_title_creator_btn: "Title/Creator",
@@ -52,6 +52,30 @@ export const SmartReportEn = {
   smart_template_msg: "The report has been set to be released regularly. Do you want to publish the report immediately and push the template message?",
   smart_push_template_btn: "Do you want to publish the report immediately and push template messages?",
   smart_status_table: "status",
+  smart_abstract_table: "Abstract",
+  smart_select_file: "Select file",
+  smart_sync_policy_report: "Sync Policy Report",
+  smart_publish_filter_select: "Publish Filter",
+  smart_status_filtering_select: "Group sending status filtering",
+  smart_emails_unsent_option: "Emails unsent",
+  smart_emails_sents_option: "Email sents",
+  smart_btn: {
+    publish: "Publish",
+    submission: "Submission",
+    editing: "Editing",
+    withdraw: "Withdraw",
+    upload: "Upload",
+    uploading: "Uploading",
+    select_all: "Select All",
+    only_publish: "Only publish",
+    publish_push: "Publish&Push",
+    morning_paper: "morning paper",
+    weekly: "weekly",
+    Submission: "Submission",
+    send_email: "Send email to group",
+    send_log: "Group send log",
+    image_download: "Image Download",
+  },
 };
 
 /* 中文 */
@@ -83,7 +107,7 @@ export const SmartReportZh = {
   smart_report_title: "报告标题",
   smart_select_time_type_btn: "选择时间类型",
   smart_notification_status_btn: "推送消息状态",
-  smart_notification_pushed: "未推送消息",
+  smart_notification_yet_pushed: "未推送消息",
   smart_notification_pushed: "已推送消息",
   smart_filtering_criteria_btn: "筛选条件",
   smart_title_creator_btn: "标题 / 创建人",
@@ -104,6 +128,30 @@ export const SmartReportZh = {
   smart_template_msg: "该报告已设置定时发布,是否立即发布报告并推送模板消息?",
   smart_push_template_btn: "是否立即发布报告,并推送模板消息?",
   smart_status_table: "状态",
+  smart_abstract_table: "摘要",
+  smart_select_file: "选择文件",
+  smart_sync_policy_report: "同步策略报告",
+  smart_publish_filter_select: "发布筛选",
+  smart_status_filtering_select: "群发状态筛选",
+  smart_emails_unsent_option: "未群发邮件",
+  smart_emails_sents_option: "已群发邮件",
+  smart_btn: {
+    publish: "发布",
+    submission: "提交",
+    editing: "编辑中...",
+    withdraw: "撤销",
+    upload: "上传",
+    uploading: "上传中",
+    select_all: "全选",
+    only_publish: "仅发布",
+    publish_push: "发布&推送",
+    morning_paper: "晨报",
+    weekly: "周报",
+    Submission: "提交",
+    send_email: "群发邮件",
+    send_log: "群发日志",
+    image_download: "图片下载",
+  },
 };
 
 /**t('ReportManage.smart_add_report')

+ 55 - 81
src/views/report_manage/reportEn/reportlist.vue

@@ -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" 

+ 23 - 23
src/views/report_manage/reportlist.vue

@@ -44,7 +44,7 @@
                     <div class="select-item">
                         <el-select
                             v-model="searchform.timeType"
-                            placeholder="选择时间类型"
+                            :placeholder="$t('ReportManage.smart_select_time_type_btn')"
                             size="medium"
                             style="width:100%;"
                             @change="search"
@@ -105,19 +105,19 @@
                             v-permission="permissionBtn.reportManageBtn.reportManage_reportList_sendTime"
                             @change="search"
                             v-model.number="searchform.msgIsSend"
-                            placeholder="推送消息状态"
+                            :placeholder="$t('ReportManage.smart_notification_status_btn')"
                             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_notification_yet_pushed')" :value="1"></el-option>
+                            <el-option :label="$t('ReportManage.smart_notification_pushed')" :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_btn')}}</span>
                     <span class="select-num">+{{selectNum}}</span>
                 </div>
             </el-popover>
@@ -139,7 +139,7 @@
           <el-form-item style="flex:1;text-align: right;">
             <el-input
               @input="search"
-              placeholder="标题 / 创建人"
+              :placeholder="$t('ReportManage.smart_title_creator_btn')"
               v-model="searchform.key_word"
               clearable
               size="medium"
@@ -198,7 +198,7 @@
           </el-table-column>
           <el-table-column
             prop="Abstract"
-            label="摘要"
+            :label="$t('ReportManage.smart_abstract_table')"
             align="center"
             min-width="140"
             fixed="left"
@@ -323,48 +323,48 @@
                     <span class="editsty" @click="publishreport(scope.row)"
                         v-if="scope.row.CanEdit&&scope.row.State===1
                             &&permissionBtn.isShowBtn('reportManageBtn','reportManage_publish')"
-                    >发布</span>
+                    >{{$t('ReportManage.smart_btn.publish')}}</span>
                     <span class="editsty" @click="handleSubmitReport(scope.row)"
                         v-if="scope.row.CanEdit&&scope.row.State===3
                             &&permissionBtn.isShowBtn('reportManageBtn','reportManage_publish')"
-                    >提交</span>
+                    >{{$t('ReportManage.smart_btn.submission')}}</span>
                     <span v-permission="permissionBtn.reportManageBtn.reportManage_reportEdit" class="editsty"
                         @click="editreport(scope.row, 'edit')" v-if="scope.row.CanEdit">{{$t('Table.edit_btn')}}</span>
                     <span v-permission="permissionBtn.reportManageBtn.reportManage_reportEdit" class="editsty"
-                        @click="editreport(scope.row, 'editing')" v-else>{{ scope.row.Editor || "" }}编辑中...</span>
+                        @click="editreport(scope.row, 'editing')" v-else>{{ scope.row.Editor || "" }}{{$t('ReportManage.smart_btn.editing')}}</span>
                     <span v-permission="permissionBtn.reportManageBtn.reportManage_reportDel" class="deletesty"
                         @click="deleteitem(scope.row)" v-if="scope.row.CanEdit">{{$t('Table.delete_btn')}}</span>
                 </template>
                 <!-- 已发布,已通过 -->
                 <template v-if="[2,6].includes(scope.row.State)">
                     <span v-if="scope.row.State===2&&permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_cancelPublish)"
-                        @click="canclepublish(scope.row)" style="color: red; cursor: pointer">撤销</span><!-- 取消发布 -->
+                        @click="canclepublish(scope.row)" style="color: red; cursor: pointer">{{$t('ReportManage.smart_btn.withdraw')}}</span><!-- 取消发布 -->
                     <span v-if="scope.row.State===6&&permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_cancelPublish)"
-                        @click="cancelReport(scope.row)" style="color: red; cursor: pointer">撤销</span>
+                        @click="cancelReport(scope.row)" style="color: red; cursor: pointer">{{$t('ReportManage.smart_btn.withdraw')}}</span>
                     <span
                         v-if="scope.row.MsgIsSend == 0 && permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_sendMsg)"
-                        style="color: #4099ef; cursor: pointer" @click="messageSend(scope.row)">推送消息</span>
+                        style="color: #4099ef; cursor: pointer" @click="messageSend(scope.row)">{{$t('ReportManage.smart_push_notification_btn')}}</span>
                     <span
                         v-else-if="scope.row.MsgIsSend != 0&&permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_sendMsg)"
-                        style="color: red">已推送消息</span>
+                        style="color: red">{{$t('ReportManage.smart_notification_pushed')}}</span>
                 </template>
                 <!-- 待审批,已驳回 -->
                 <template v-if="[4,5].includes(scope.row.State)">
                     <span v-if="permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_cancelPublish)"
-                        @click="cancelReport(scope.row)" style="color: red; cursor: pointer">撤销</span>
+                        @click="cancelReport(scope.row)" style="color: red; cursor: pointer">{{$t('ReportManage.smart_btn.withdraw')}}</span>
                 </template>
                 <!-- 音频上传和下载,跟State无关 -->
                 <span style="color: #46c371; cursor: pointer"
-                    v-if="!['晨报', '周报'].includes(scope.row.ClassifyNameFirst)&&permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_audioUpload)"
+                    v-if="![$t('ReportManage.smart_btn.morning_paper'), $t('ReportManage.smart_btn.weekly')].includes(scope.row.ClassifyNameFirst)&&permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_audioUpload)"
                     @click="openupload(scope.row.Id)">{{$t('ReportManage.smart_audio_upload_btn')}}</span>
                 <a v-permission="permissionBtn.reportManageBtn.reportManage_audioDownload"
                     :href="hostapi + '?ReportId=' + parseInt(scope.row.Id)" v-if="
                     scope.row.VideoUrl &&
-                    !['晨报', '周报'].includes(scope.row.ClassifyNameFirst)
+                    ![$t('ReportManage.smart_btn.morning_paper'), $t('ReportManage.smart_btn.weekly')].includes(scope.row.ClassifyNameFirst)
                 " :download="scope.row.VideoName" style="cursor: pointer; color: #4099ef">{{$t('ReportManage.smart_audio_download_btn')}}</a>
                 <span v-permission="permissionBtn.reportManageBtn.reportManage_audioDownload"
                     style="cursor: pointer; color: #4099ef" v-if="
-                    ['晨报', '周报'].includes(scope.row.ClassifyNameFirst) &&
+                    [$t('ReportManage.smart_btn.morning_paper'), $t('ReportManage.smart_btn.weekly')].includes(scope.row.ClassifyNameFirst) &&
                     scope.row.ChapterVideoList.length > 0
                 " @click="handleShowDownloadAudio(scope.row)">{{$t('ReportManage.smart_audio_download_btn')}}</span>
               </div>
@@ -467,7 +467,7 @@
             style="width: 350px"
           ></el-input>
           <el-button type="primary" size="medium" @click.native="clickinput"
-            >选择文件</el-button
+            >{{$t('ReportManage.smart_select_file')}}</el-button
           >
         </el-form-item>
       </el-form>
@@ -484,7 +484,7 @@
           size="medium"
           :loading="uploadloading"
           @click.native="uploadaudio"
-          >{{ uploadloading ? "上传中" : "上 传" }}</el-button
+          >{{ uploadloading ? $t('ReportManage.smart_btn.uploading') : $t('ReportManage.smart_btn.upload') }}</el-button
         >
       </div>
     </el-dialog>
@@ -517,7 +517,7 @@
             v-model="checkAllAudio"
             style="margin-bottom: 10px"
             @change="handleDownloadAudioCheckAll"
-            >全选</el-checkbox
+            >{{$t('ReportManage.smart_btn.select_all')}}</el-checkbox
           >
           <el-checkbox-group v-model="downloadAudio.select">
             <el-checkbox
@@ -572,14 +572,14 @@
             type="primary"
             style="width: 100px; margin: 0 20px"
             @click="handlePublic(1)"
-            >仅发布</el-button
+            >{{$t('ReportManage.smart_btn.only_publish')}}</el-button
           >
           <el-button
             type="primary"
             style="width: 100px"
             :disabled="!canPushMsg"
             @click="handlePublic(2)"
-            >发布&推送</el-button
+            >{{$t('ReportManage.smart_btn.publish_push')}}</el-button
           >
         </div>
       </div>

+ 33 - 33
src/views/smartReport/reportList.vue

@@ -24,7 +24,7 @@
                             <div class="select-item">
                                 <el-select
                                     v-model="searchform.timeType"
-                                    placeholder="选择时间类型"
+                                    :placeholder="$t('ReportManage.smart_select_time_type_btn')"
                                     size="medium"
                                     style="width:100%"
                                     @change="search"
@@ -158,12 +158,12 @@
                 </el-table-column>
                 <el-table-column
                     prop="Abstract"
-                    label="摘要"
+                    :label="$t('ReportManage.smart_abstract_table')"
                     align="center"
                     min-width="140"
                     fixed
                 ></el-table-column>
-                <el-table-column label="报告类型" align="center" min-width="140">
+                <el-table-column :label="$t('ReportManage.smart_report_type')" align="center" min-width="140">
                     <template slot-scope="scope"
                     >{{ scope.row.ClassifyNameFirst }}
                     <span v-if="scope.row.ClassifyNameSecond"
@@ -173,7 +173,7 @@
                 </el-table-column>
                 <el-table-column
                     prop="AdminRealName"
-                    label="创建人"
+                    :label="$t('ReportManage.smart_creator_btn')"
                     align="center"
                     min-width="100"
                 ></el-table-column>
@@ -183,14 +183,14 @@
                     align="center"
                     min-width="100"
                 ></el-table-column>
-                <el-table-column label="状态" align="center">
+                <el-table-column :label="$t('ReportManage.smart_status_table')" align="center">
                     <template slot-scope="scope">
-                        <span v-if="scope.row.State == '1'">未发布</span>
-                        <span v-if="scope.row.State == '2'">已发布</span>
-                        <span v-if="scope.row.State == '3'">待提交</span>
-                        <span v-if="scope.row.State == '4'">待审批</span>
-                        <span v-if="scope.row.State == '5'">已驳回</span>
-                        <span v-if="scope.row.State == '6'">已通过</span>
+                        <span v-if="scope.row.State == '1'">{{$t('ReportManage.smart_unpublished')}}</span>
+                        <span v-if="scope.row.State == '2'">{{$t('ReportManage.smart_published')}}</span>
+                        <span v-if="scope.row.State == '3'">{{$t('ReportManage.smart_pending')}}</span>
+                        <span v-if="scope.row.State == '4'">{{$t('ReportManage.smart_awaiting_approval')}}</span>
+                        <span v-if="scope.row.State == '5'">{{$t('ReportManage.smart_rejected')}}</span>
+                        <span v-if="scope.row.State == '6'">{{$t('ReportManage.smart_approved')}}</span>
                     </template>
                 </el-table-column>
                 <!-- <el-table-column v-if="!isApprove"
@@ -219,7 +219,7 @@
                         <span>{{scope.row.ApproveTime|formatTime}}</span>
                     </template>
                 </el-table-column> -->
-                <el-table-column prop="PublishTime" label="发布/审批时间" min-width="124" align="center">
+                <el-table-column prop="PublishTime" :label="$t('ReportManage.smart_release_approval_time')" min-width="124" align="center">
                 <template slot-scope="scope">
                     <template v-if="[1,2].includes(scope.row.State)">
                         <span>{{scope.row.PrePublishTime?scope.row.PrePublishTime:scope.row.PublishTime|formatTime}}</span>
@@ -234,15 +234,15 @@
             </el-table-column>
                 <el-table-column
                     prop="ContentModifyTime"
-                    label="更新时间"
+                    :label="$t('ReportManage.smart_update_time')"
                     min-width="124"
                     align="center"
                     :formatter="formatterColumn"
                 ></el-table-column>
-                <el-table-column label="期数" align="center">
+                <el-table-column :label="$t('ReportManage.smart_issue_number_btn')" align="center">
                     <template slot-scope="scope">第{{ scope.row.Stage }}期</template>
                 </el-table-column>
-                <el-table-column label="频度" align="center">
+                <el-table-column :label="$t('ReportManage.smart_frequency_btn')" align="center">
                     <template slot-scope="scope">{{ scope.row.Frequency }}</template>
                 </el-table-column>
                 <el-table-column
@@ -255,7 +255,7 @@
                     >{{ hasUV? scope.row.Pv+'/'+scope.row.Uv:scope.row.Pv }}</template
                     >
                 </el-table-column>
-                <el-table-column label="操作" align="center" min-width="130" fixed="right">
+                <el-table-column :label="$t('Table.column_operations')" align="center" min-width="130" fixed="right">
                     <template slot-scope="scope">
                     <div class="opt-btns">
                         <!-- 操作:
@@ -269,47 +269,47 @@
                         <template v-if="[1,3].includes(scope.row.State)">
                             <span v-permission="permissionBtn.smartReportManageBtn.reportManage_publish"
                                 class="editsty" @click="handlePublishReportOpt(scope.row)"
-                                v-if="scope.row.CanEdit&&scope.row.State===1">发布</span>
+                                v-if="scope.row.CanEdit&&scope.row.State===1">{{$t('ReportManage.smart_btn.publish')}}</span>
                             <span v-permission="permissionBtn.smartReportManageBtn.reportManage_publish"
                                 class="editsty" @click="handleSubmitReport(scope.row)"
-                                v-if="scope.row.CanEdit&&scope.row.State===3">提交</span>
+                                v-if="scope.row.CanEdit&&scope.row.State===3">{{$t('ReportManage.smart_btn.Submission')}}</span>
                             <span v-permission="permissionBtn.smartReportManageBtn.reportManage_reportEdit"
                                 class="editsty" @click="editreport(scope.row, 'edit')"
-                                v-if="scope.row.CanEdit">编辑</span>
+                                v-if="scope.row.CanEdit">{{$t('Table.edit_btn')}}</span>
                             <span v-permission="permissionBtn.smartReportManageBtn.reportManage_reportEdit"
                                 class="editsty" @click="editreport(scope.row, 'editing')"
-                                v-else>{{ scope.row.Editor || "" }}编辑中...</span>
+                                v-else>{{ scope.row.Editor || "" }}{{$t('ReportManage.smart_btn.editing')}}</span>
                             <span v-permission="permissionBtn.smartReportManageBtn.reportManage_reportDel"
                                 class="deletesty" @click="handleDelReport(scope.row)"
-                                v-if="scope.row.CanEdit">删除</span>
+                                v-if="scope.row.CanEdit">{{$t('Table.delete_btn')}}</span>
                         </template>
                         <!-- 已发布,已通过 -->
                         <template v-if="[2,6].includes(scope.row.State)">
                             <span v-if="permissionBtn.isShowBtn('smartReportManageBtn','reportManage_cancelPublish')&&scope.row.State===2"
                                 @click="handleReportPublishCancel(scope.row)"
-                                style="color: red; cursor: pointer">撤销</span><!-- 取消发布 -->
+                                style="color: red; cursor: pointer">{{$t('ReportManage.smart_btn.withdraw')}}</span><!-- 取消发布 -->
                             <span v-if="permissionBtn.isShowBtn('smartReportManageBtn','reportManage_cancelPublish')&&scope.row.State===6"
                                 @click="cancelReport(scope.row)"
-                                style="color: red; cursor: pointer">撤销</span>
+                                style="color: red; cursor: pointer">{{$t('ReportManage.smart_btn.withdraw')}}</span>
                             <span v-if="scope.row.DetailImgUrl"
                                 v-permission="permissionBtn.smartReportManageBtn.reportManage_exportImg"
                                 @click="handleDownReportImg(scope.row.DetailImgUrl,scope.row.Title)"
-                                style="cursor: pointer; color: #4099ef;display:inline-block">图片下载</span>
+                                style="cursor: pointer; color: #4099ef;display:inline-block">{{$t('ReportManage.smart_btn.image_download')}}</span>
                         </template>
                         <!-- 待审批,已驳回 -->
                         <template v-if="[4,5].includes(scope.row.State)">
                             <span v-if="permissionBtn.isShowBtn('smartReportManageBtn','reportManage_cancelPublish')"
                                 @click="cancelReport(scope.row)"
-                                style="color: red; cursor: pointer">撤销</span>
+                                style="color: red; cursor: pointer">{{$t('ReportManage.smart_btn.withdraw')}}</span>
                         </template>
                         <!-- 音频上传、下载,与状态无关 -->
                         <span style="color: #46c371; cursor: pointer;display:inline-block"
                             v-if="permissionBtn.checkPermissionBtn(permissionBtn.smartReportManageBtn.reportManage_audioUpload)"
-                            @click="openupload(scope.row.SmartReportId)">音频上传</span>
+                            @click="openupload(scope.row.SmartReportId)">{{$t('ReportManage.smart_audio_upload_btn')}}</span>
                         <span style="cursor: pointer; color: #4099ef;display:inline-block"
                             v-permission="permissionBtn.smartReportManageBtn.reportManage_audioDownload"
                             v-if="scope.row.VideoUrl" @click="handleDownloadVoice(scope.row)">
-                            音频下载
+                            {{$t('ReportManage.smart_audio_download_btn')}}
                         </span>
                     </div>
                     </template>
@@ -331,7 +331,7 @@
         </el-card>
         <!-- 上传音频弹框 -->
         <el-dialog
-            title="上传音频"
+            :title="$t('ReportManage.smart_audio_upload_btn')"
             :visible.sync="uploadDialog"
             :modal-append-to-body="false"
             :close-on-click-modal="false"
@@ -345,7 +345,7 @@
                 :src="$icons.up"
                 style="color: #fff; width: 16px; height: 16px; margin-right: 5px"
                 />
-                <span style="font-size: 16px">上传音频</span>
+                <span style="font-size: 16px">{{$t('ReportManage.smart_audio_upload_btn')}}</span>
             </div>
             <el-form
                 :model="uploadForm"
@@ -367,12 +367,12 @@
                     type="text"
                     v-model="uploadForm.audioname"
                     readonly
-                    placeholder="上传报告录音"
+                    :placeholder="$t('ReportManage.smart_upload_recording_btn')"
                     size="medium"
                     style="width: 350px"
                 ></el-input>
                 <el-button type="primary" size="medium" @click.native="clickinput"
-                    >选择文件</el-button
+                    >{{$t('ReportManage.smart_select_file')}}</el-button
                 >
                 </el-form-item>
             </el-form>
@@ -382,14 +382,14 @@
                 plain
                 size="medium"
                 @click.native="uploadDialog = false"
-                >取 消</el-button
+                >{{$t('Dialog.cancel_btn')}}</el-button
                 >
                 <el-button
                 type="primary"
                 size="medium"
                 :loading="uploadloading"
                 @click.native="uploadaudio"
-                >{{ uploadloading ? "上传中" : "上 传" }}</el-button
+                >{{ uploadloading ? $t('ReportManage.smart_btn.uploading') : $t('ReportManage.smart_btn.upload') }}</el-button
                 >
             </div>
         </el-dialog>