Browse Source

inin lang

bding 1 năm trước cách đây
mục cha
commit
5dbc95c888

+ 1 - 0
package.json

@@ -55,6 +55,7 @@
     "vue-count-to": "^1.0.13",
     "vue-froala-wysiwyg": "^3.1.0",
     "vue-giant-tree": "^1.0.0",
+    "vue-i18n": "^8.28.2",
     "vue-masonry": "^0.16.0",
     "vue-pdf": "^4.2.0",
     "vue-qr": "^2.3.0",

+ 49 - 0
src/lang/commonLang.js

@@ -0,0 +1,49 @@
+// 通用文字翻译
+export default {
+  Dialog: {
+    cancel_btn: {
+      en: "Cancel",
+      ch: "取消",
+    },
+    confirm_btn: {
+      en: "Confirm",
+      ch: "确定",
+    },
+    confirm_save_btn: {
+      en: "Save",
+      ch: "保存 ",
+    },
+  },
+  Table: {
+    add_btn: {
+      en: "Add",
+      ch: "添加",
+    },
+    edit_btn: {
+      en: "Edit",
+      ch: "编辑",
+    },
+    edit_btn: {
+      en: "Delete",
+      ch: "删除",
+    },
+    column_operations: {
+      en: "Operations",
+      ch: "操作",
+    },
+    table_no_data: {
+      en: "Operations",
+      ch: "操作",
+    },
+  },
+  Confirm: {
+    prompt: {
+      en: "Prompt",
+      ch: "提示 ",
+    },
+    prompt_slogan: {
+      en: "No data available.",
+      ch: "暂无数据",
+    },
+  },
+};

+ 23 - 0
src/lang/en.js

@@ -0,0 +1,23 @@
+/*
+ ** 英文区
+ * @param {为了方便区分,页面模块以大驼峰命名,具体要翻译的key变量用小写字母加_命名} */
+import { transformLanguageData } from "./langUtils";
+import { CloudPageEn } from "./modules/ReportManagement/CloudPage";
+import commonLang from "./commonLang";
+
+export default {
+  ReportManage: {
+    ReportAdd: {
+      refresh_btn: "One click refresh",
+      preview_btn: "Preview",
+      draft_btn: "Save draft",
+      input_content: "please input content",
+      publish_btn: "Publish",
+    },
+    CloudPage: {
+      ...CloudPageEn,
+    },
+  },
+  Dialog: transformLanguageData(commonLang.Dialog,'en'),
+  Confirm: transformLanguageData(commonLang.Confirm,'en'),
+};

+ 6 - 0
src/lang/index.js

@@ -0,0 +1,6 @@
+import zh from "./zh.js";
+import en from "./en.js";
+export default {
+  zh,
+  en,
+};

+ 16 - 0
src/lang/langUtils.js

@@ -0,0 +1,16 @@
+export function transformLanguageData(originalObject, targetLanguage) {
+  if (!originalObject) {
+    // console.error("没有传参数");
+    return null;
+  }
+
+  const transformedData = {};
+
+  for (const key in originalObject) {
+    if (originalObject.hasOwnProperty(key)) {
+      transformedData[key] = originalObject[key][targetLanguage];
+    }
+  }
+
+  return transformedData;
+}

+ 43 - 0
src/lang/modules/ReportManagement/AuthorManagement.js

@@ -0,0 +1,43 @@
+/**
+ * 研报管理--作者管理
+ */
+
+/* 英文 */
+export const AuthorManagementZh = {
+  add_author_btn: "Add author",
+  edit_author_btn: "Edit author",
+  author_input_name: "Author name",
+  please_input: "Please input",
+  add_confirm_btn: "Save",
+  add_author_rules: "Please enter author name",
+  add_author_rules_exists: "Author name exists",
+  add_author_success_msg: "Added successfully",
+  edit_success_msg: "Edit successful",
+  column_add_time: "Add time",
+  column_status: "Status",
+  column_disabled_btn: "Disabled",
+  column_enabled_btn: "Enabled",
+  delete_info_msg: "Deletion is irreversible. Are you sure you want to delete this author's name?",
+  delete_error_msg: "This author's name is associated with reports and cannot be deleted.",
+  delete_success_msg: "Delete successful",
+};
+
+/* 中文 */
+export const AuthorManagementEn = {
+  add_author_btn: "添加作者",
+  edit_author_btn: "编辑作者",
+  author_input_name: "作者名称",
+  please_input: "请输入 ",
+  add_confirm_btn: "保存",
+  add_author_rules: "请输入作者名称",
+  add_author_rules_exists: "已存在该作者",
+  add_author_success_msg: "添加成功",
+  edit_success_msg: "编辑成功",
+  column_add_time: "添加时间",
+  column_status: "状态",
+  column_disabled_btn: "禁用",
+  column_enabled_btn: "启用",
+  delete_info_msg: "删除不可恢复,确认删除该作者名称吗?",
+  delete_error_msg: "该作者名称有关联报告,不允许删除",
+  delete_success_msg: "删除成功",
+};

+ 9 - 0
src/lang/modules/ReportManagement/CategoryList.js

@@ -0,0 +1,9 @@
+/**
+ * 研报管理--分类列表
+ */
+
+/* 英文 */
+export const CategoryListZh = {};
+
+/* 中文 */
+export const CategoryListEn = {};

+ 77 - 0
src/lang/modules/ReportManagement/CloudPage.js

@@ -0,0 +1,77 @@
+/**
+ * 研报管理--云盘
+ */
+
+/* 英文 */
+export const CloudPageZh = {
+  // 新建文件夹
+  folder_btn: "New Folder",
+  input_content: "Please enter keyword",
+  input_file_name: "Please enter file/folder name",
+  create_btn: "Create",
+  folder_error_msg: "The folder exists",
+  folder_success_msg: "New folder created successfully",
+  // 上传文件
+  upload_btn: "Upload document",
+  select_folder_title: "Select folder",
+  folder_location: "Folder location",
+  upload_error_msg: "Upload unsucessful",
+  upload_success_msg: "Upload successful",
+  upload_folder_error_msg: "Please select a folder director",
+  upload_please_error_msg: "A file with the same name already exists. Do you still want to proceed with uploading the file?",
+  upload_confirm_btn: "Keep both",
+  //   表格
+  column_name: "Name",
+  column_author: "Author",
+  column_font: "Font",
+  column_rename_btn: "Rename",
+  column_download_btn: "Download",
+  column_delete_btn: "Delete",
+  column_creation_time: "Creation time",
+  rules_prompt: "File/folder name cannot be empty",
+  rename_dialog_error_msg: "File name exists",
+  rename_dialog_success_msg: "Rename successful",
+  download_info_msg: "is starting to download. Please do not download again",
+  download_success_msg: "Download successful",
+  delete_info_msg: "Are you sure you want to permanently delete this file?)",
+  delete_success_msg: "Delete successful",
+  table_no_file: "No file available",
+  everything:'Everything'
+};
+
+/* 中文 */
+export const CloudPageEn = {
+  // 新建文件夹
+  folder_btn: "新建文件夹",
+  input_content: "请输入关键字",
+  input_file_name: "请输入文件/文件夹名称",
+  create_btn: "创建",
+  folder_error_msg: "该文件夹已存在",
+  folder_success_msg: "新建文件夹成功",
+  // 上传文件
+  upload_btn: "上传文件",
+  select_folder_title: "选择文件夹",
+  folder_location: "所在文件夹",
+  upload_error_msg: "上传失败",
+  upload_success_msg: "上传成功",
+  upload_folder_error_msg: "请选择文件夹目录",
+  upload_please_error_msg: "已有同名文件,是否继续上传文件?",
+  upload_confirm_btn: "保留两者",
+  //   表格
+  column_name: "名称",
+  column_author: "创建人",
+  column_font: "大小",
+  column_creation_time: "创建时间",
+  column_rename_btn: "重命名",
+  column_download_btn: "下载",
+  column_delete_btn: "删除",
+  rules_prompt: "文件/文件夹名称不能为空",
+  rename_dialog_error_msg: "该文件名已存在",
+  rename_dialog_success_msg: "重命名成功",
+  download_info_msg: "开始下载,请勿重复下载",
+  download_success_msg: "下载成功 ",
+  delete_info_msg: "删除后不可恢复,是否确认删除?",
+  delete_success_msg: "删除成功",
+  table_no_file: "暂无文件",
+  everything:'全部'
+};

+ 39 - 0
src/lang/modules/ReportManagement/CommodityConfiguration.js

@@ -0,0 +1,39 @@
+/**
+ * 研报管理--品种配置
+ */
+
+/* 英文 */
+export const CommodityConfigurationZh = {
+  product_type: "Product type",
+  add_product_btn: "Add product",
+  add_product_input: "Please input the product type",
+  add_product_select: "Parent product",
+  add_backend_sorting: "Backend sorting",
+  add_product_error_msg: "Please input product type",
+  //   表格
+  column_top: "Top-level product",
+  column_second: "Second-level product",
+  column_edit_btn: "Edit Category",
+  column_delete_btn: "Edit Category",
+  delete_info_msg: "Are you sure you want to delete this file?",
+  delete_success_msg: "Delete sucessful",
+  delete_error_msg: "Please delete associated product under this category first",
+};
+
+/* 中文 */
+export const CommodityConfigurationEn = {
+  product_type: "品种名称",
+  add_product_btn: "添加品种",
+  add_product_input: "请输入品种名称",
+  add_product_select: "上级品种",
+  add_backend_sorting: "后台排序",
+  add_product_error_msg: "请填写品种名称",
+  //   表格
+  column_top: "一级品种",
+  column_second: "二级品种",
+  column_edit_btn: "编辑分类",
+  column_delete_btn: "删除",
+  delete_info_msg: "确认删除吗?",
+  delete_success_msg: "删除成功",
+  delete_error_msg: "请先删除该品种下关联品种",
+};

+ 34 - 0
src/lang/modules/SemanticsManage/DocumentComparison.js

@@ -0,0 +1,34 @@
+/**
+ * 语义分析--文档管理
+ */
+
+/* 英文 */
+export const DocumentComparisonZh = {
+  add_document_btn: "Add Document Comparison",
+  input_enter_content: "Enter Document Name",
+  add_category: "Add Category",
+  add_category_name: "Category Name",
+  add_category_input_name: "Please enter category name",
+  search_btn: "Search",
+  add_search_term: "Add Search Term",
+  add_search_input: "Please enter search term",
+};
+
+/* 中文 */
+export const DocumentComparisonEn = {
+  add_document_btn: "添加文档对比",
+  input_enter_content: "请输入文档名称",
+  add_category: "添加分类",
+  add_category_name: "分类名称",
+  add_category_input_name: "请输入分类名称",
+  search_btn: "搜索",
+  add_search_term: "添加搜索词",
+  add_search_input: "请输入搜索词",
+  select_documents_comparison: "选择对比文档 Select Documents for Comparison",
+  select_documents: "选择文档 Choose Document",
+  select_documents_input: "请输入文档名称 Please enter document name",
+  select_tags: "选择标签 Select Tags",
+  show_only_mine: "只看我的 Show Only Mine",
+  semantic_analysis_name: "语义分析名称 Semantic Analysis Name",
+  semantic_analysis_name_input: "请输入语义分析名称 Please enter semantic analysis name",
+};

+ 53 - 0
src/lang/modules/SemanticsManage/DocumentManagement.js

@@ -0,0 +1,53 @@
+/**
+ * 语义分析--文档管理
+ */
+
+/* 英文 */
+export const DocumentManagementZh = {
+  document_name: "Document Name",
+  add_document_btn: "Add Document",
+  input_content: "Please enter document name",
+  input_enter_content: "Enter Document Name",
+  category_name: "Category",
+  category_select: "Please select a category",
+  add_document_empty_msg: "Document name cannot be empty",
+  select_document_category_msg: "Please select a document category",
+  document_name_exists_msg: "Document name already exists",
+  successfully_added: "Successfully added",
+  add_category: "Add Category",
+  add_category_name: "Category Name",
+  add_category_input_name: "Please enter category name",
+  edit_category: "Edit Category",
+  delete_category_msg: "Delete operation cannot be undone. Are you sure you want to delete?",
+  add_next_section: "Add Next Section",
+  number_tags_attached: "Number of Tags Attached",
+  error_notifications: "Already associated with comparison results, deletion not allowed.",
+  deleted_notifications: "Deleted successfully.",
+  edited_notifications: "Edited successfully.",
+  added_notifications: "Added successfully.",
+};
+
+/* 中文 */
+export const DocumentManagementEn = {
+  document_name: "文档名称",
+  add_document_btn: "添加添加文档",
+  input_content: "请输入文件名称",
+  input_enter_content: "请输入文档名称",
+  category_name: "所属分类",
+  category_select: "请选择所属分类",
+  add_document_empty_msg: "文档名称不能为空",
+  select_document_category_msg: "请选择文档分类",
+  document_name_exists_msg: "文档名称已存在",
+  successfully_added: "新增成功",
+  add_category: "添加分类",
+  add_category_name: "分类名称",
+  add_category_input_name: "请输入分类名称",
+  edit_category: "编辑分类",
+  delete_category_msg: "删除操作不可恢复,确认删除吗?",
+  add_next_section: "添加下一段",
+  number_tags_attached: "已打标签数",
+  error_notifications: "已关联对比结果,不允许删除",
+  deleted_notifications: "删除成功",
+  edited_notifications: "编辑成功",
+  added_notifications: "新增成功",
+};

+ 27 - 0
src/lang/modules/SemanticsManage/TagManagement.js

@@ -0,0 +1,27 @@
+/**
+ * 语义分析--标签管理
+ */
+
+/* 英文 */
+export const TagManagementZh = {
+  add_tag_btn: "Add Tag",
+  tag_name: "Tag Name ",
+  input_content: "Please enter tag name",
+  note_content: "Note: Name should not exceed 15 characters",
+  tag_content: "Tag Content",
+  column_content_number: "Number of Contents",
+  column_creation_time: "Creation Time",
+  edit_tag_btn: "Edit Tag",
+};
+
+/* 中文 */
+export const TagManagementEn = {
+  add_tag_btn: "添加标签",
+  tag_name: "标签名称",
+  input_content: "请输入标签名称",
+  note_content: "注:名称不得超过15字",
+  tag_content: "标签内容",
+  column_content_number: "内容数量",
+  column_creation_time: "创建时间",
+  edit_tag_btn: "编辑标签",
+};

+ 9 - 0
src/lang/modules/Slides/index.js

@@ -0,0 +1,9 @@
+/**
+ * 研报管理--智能PPT
+ */
+
+/* 英文 */
+export const SlidesZh = {};
+
+/* 中文 */
+export const SlidesEn = {};

+ 23 - 0
src/lang/zh.js

@@ -0,0 +1,23 @@
+/*
+ ** 中文区
+ * @param {为了方便区分,页面模块以大驼峰命名,具体要翻译的key变量用小写字母加_命名} */
+import { transformLanguageData } from "./langUtils";
+import { CloudPageZh } from "./modules/ReportManagement/CloudPage";
+import commonLang from "./commonLang";
+
+export default {
+  ReportManage: {
+    ReportAdd: {
+      refresh_btn: "One click refresh",
+      preview_btn: "Preview",
+      draft_btn: "Save draft",
+      input_content: "please input content",
+      publish_btn: "Publish",
+    },
+    CloudPage: {
+      ...CloudPageZh,
+    },
+  },
+  Dialog: transformLanguageData(commonLang.Dialog,'zh'),
+  Confirm: transformLanguageData(commonLang.Confirm,'zh'),
+};

+ 8 - 1
src/main.js

@@ -12,8 +12,14 @@ import "@/utils/dialog.js";
 import "@/utils/option-scroll.js";
 import "@/utils/buttonPermission.js";
 import { mixins } from "@/mixins";
+import VueI18n from 'vue-i18n';
+import messages from './lang/index';
 Vue.mixin(mixins);
-
+Vue.use(VueI18n);
+const i18n = new VueI18n({
+  locale: 'en', // 默认语言
+  messages
+});
 Vue.use(ElementUI);
 Vue.use(VueRouter);
 Vue.use(Vuex);
@@ -229,6 +235,7 @@ Vue.config.devtools = true;
 new Vue({
   router,
   store,
+  i18n,
   render: (h) => h(App),
 }).$mount("#app");
 

+ 33 - 26
src/views/report_manage/cloudDisk.vue

@@ -3,17 +3,17 @@
     <div class="top-zone">
       <div class="button-zone" v-show="tableSelection && tableSelection.length!=0">
         <el-button v-permission="permissionBtn.cloudDisk.cloudDisk_download"
-            class="download-button" @click="downloadBatch">下载</el-button>
+            class="download-button" @click="downloadBatch">{{$t('ReportManage.CloudPage.column_download_btn')}}</el-button>
         <el-button v-permission="permissionBtn.cloudDisk.cloudDisk_del"
-            type="danger" style="min-width: 112px;" @click="removeBatch" v-if="buttonPermission.batchDelete">删除</el-button>
+            type="danger" style="min-width: 112px;" @click="removeBatch" v-if="buttonPermission.batchDelete">{{$t('ReportManage.CloudPage.column_delete_btn')}}</el-button>
       </div>
       <div class="button-zone" v-show="(!tableSelection || tableSelection.length==0) && keyword==''">
         <el-button type="primary" v-permission="permissionBtn.cloudDisk.cloudDisk_newDir"
-            @click="newFloder" v-if="buttonPermission.createMenuAuth">新建文件夹</el-button>
+            @click="newFloder" v-if="buttonPermission.createMenuAuth">{{ $t('ReportManage.CloudPage.folder_btn') }}</el-button>
         <template v-if="buttonPermission.uploadResourceAuth">
           <el-button v-permission="permissionBtn.cloudDisk.cloudDisk_uploadFile"
           type="primary" style="min-width: 112px;" 
-          @click="uploadFilePre" :loading="isUploading">上传文件</el-button>
+          @click="uploadFilePre" :loading="isUploading">{{ $t('ReportManage.CloudPage.upload_btn') }}</el-button>
           <el-upload
             action="#"
             ref="upload"
@@ -27,9 +27,11 @@
       </div>
       <div class="search-zone">
         <el-input v-model.trim="keyword" prefix-icon="el-icon-search"
-        style="width: 317px;" placeholder="请输入关键字" clearable @input="getFileList(null,0)" ></el-input>
+        style="width: 317px;" :placeholder="$t('ReportManage.CloudPage.input_content')" clearable @input="getFileList(null,0)" ></el-input>
       </div>
     </div>
+    <!-- // 等下删除 -->
+    <el-button @click="ExchangeChinesEnglish">中英互换</el-button>
     <div class="table-zone" >
       <div class="bread-crumb-row" v-show="keyword==''">
         <el-breadcrumb>
@@ -48,7 +50,7 @@
           </el-table-column>
           <el-table-column prop="ItemName" show-overflow-tooltip >
             <template slot="header" slot-scope="scope">
-              {{ tableSelection.length>0?`已选中${tableSelection.length}个文件/文件夹`:'名称' }}
+              {{ tableSelection.length>0?`已选中${tableSelection.length}个文件/文件夹`:$t('ReportManage.CloudPage.column_name') }}
             </template>
             <template slot-scope="{row}">
               <div class="file-name">
@@ -57,19 +59,19 @@
               </div>
             </template>
           </el-table-column>
-          <el-table-column label="创建人" prop="AdminName" width="112" show-overflow-tooltip>
+          <el-table-column :label="$t('ReportManage.CloudPage.column_author')" prop="AdminName" width="112" show-overflow-tooltip>
             <template slot-scope="{row}">
               {{ row.AdminName }}
             </template>
           </el-table-column>
-          <el-table-column label="创建时间" prop="CreateTime" sortable="custom" width="190">
+          <el-table-column :label="$t('ReportManage.CloudPage.column_creation_time')" prop="CreateTime" sortable="custom" width="190">
             <template slot-scope="{row}">
               {{ row.CreateTime }}
             </template>
           </el-table-column>
-          <el-table-column label="大小" prop="SizeName" width="140" show-overflow-tooltip>
+          <el-table-column :label="$t('ReportManage.CloudPage.column_font')" prop="SizeName" width="140" show-overflow-tooltip>
             <template slot="header" slot-scope="scope">
-              {{ keyword==''?'大小':'所在目录' }}
+              {{ keyword==''? $t('ReportManage.CloudPage.column_font'):'所在目录' }}
             </template>
             <template slot-scope="{row}">
               <span v-show="keyword==''">{{row.SizeName}}</span>
@@ -85,18 +87,18 @@
                 </span>
                 <el-dropdown-menu slot="dropdown">
                   <el-dropdown-item command="rename" v-permission="permissionBtn.cloudDisk.cloudDisk_rename"
-                    v-if="row.ButtonAuth.RenameAuth">重命名</el-dropdown-item>
+                    v-if="row.ButtonAuth.RenameAuth">{{$t('ReportManage.CloudPage.column_rename_btn')}}</el-dropdown-item>
                   <el-dropdown-item command="download" v-permission="permissionBtn.cloudDisk.cloudDisk_download"
-                    >下载</el-dropdown-item>
+                    >{{$t('ReportManage.CloudPage.column_download_btn')}}</el-dropdown-item>
                   <el-dropdown-item command="remove" v-permission="permissionBtn.cloudDisk.cloudDisk_del"
-                    ><span style="color:#D1433A ;" v-if="row.ButtonAuth.DelAuth" >删除</span></el-dropdown-item>
+                    ><span style="color:#D1433A ;" v-if="row.ButtonAuth.DelAuth" >{{$t('ReportManage.CloudPage.column_delete_btn')}}</span></el-dropdown-item>
                 </el-dropdown-menu>
               </el-dropdown>
             </template>
           </el-table-column>
           <template slot="empty" >
             <div style="padding: 140px 0">
-              <tableNoData text="暂无文件"/>
+              <tableNoData :text="$t('ReportManage.CloudPage.table_no_file')"/>
             </div>
           </template>
         </el-table>
@@ -106,14 +108,14 @@
     <el-dialog :title="dialogTitle" :visible.sync="newDialogShow" :close-on-click-modal="false" 
     :modal-append-to-body="false" @closed="closeNewDialog" width="408px" id="newOrRename">
       <el-form :model="newOrRenameForm" ref="newOrRenameForm">
-        <el-form-item prop="itemValue" :rules="{required:true,message:'文件/文件夹名称不能为空',trigger:'blur'}">
-          <el-input v-model="newOrRenameForm.itemValue" placeholder="请输入文件/文件夹名称" style="width: 100%;"></el-input>
+        <el-form-item prop="itemValue" :rules="{required:true,message:$t('ReportManage.CloudPage.rules_prompt'),trigger:'blur'}">
+          <el-input v-model="newOrRenameForm.itemValue" :placeholder="$t('ReportManage.CloudPage.input_file_name')" style="width: 100%;"></el-input>
         </el-form-item>
       </el-form>
       <template slot="footer">
-        <el-button @click="newDialogShow=false" size="small" style="width: 60px;">取消</el-button>
+        <el-button @click="newDialogShow=false" size="small" style="width: 60px;">{{$t('Dialog.cancel_btn')}}</el-button>
         <el-button type="primary" @click="newOrRenameConFirm" size="small" style="width: 60px;margin-left: 4px;" >
-          {{ dialogTitle=='新建文件夹'?'创建':'确定' }}
+          {{ dialogTitle==$t('ReportManage.CloudPage.folder_btn')?$t('ReportManage.CloudPage.create_btn') :$t('Dialog.confirm_btn')}}
         </el-button>
       </template>
     </el-dialog>
@@ -122,7 +124,7 @@
     append-to-body width="640px" @closed="closeChooseFolderDia" >
       <div class="choose-folder-box" id="choose-folder-box">
         <div class="folder-item">
-          所在文件夹:<span>{{ folderPath || '--' }}</span>
+          {{$t('ReportManage.CloudPage.folder_location')}}:<span>{{ folderPath || '--' }}</span>
         </div>
         <el-scrollbar style="height:470px;overflow-x: hidden;width: 100%;">
           <el-tree :data="treeData" icon-class="none" @node-click="chooseFolder"
@@ -140,8 +142,8 @@
         </el-scrollbar>
       </div>
       <div class="choose-dialog-footer">
-        <el-button type="primary" @click="chooseFolderconFirm" size="medium" style="margin-left: 26px;width: 100px;">确定</el-button>
-        <el-button @click="chooseFolderDiaShow=false" size="medium" style="width: 100px;">取消</el-button>
+        <el-button type="primary" @click="chooseFolderconFirm" size="medium" style="margin-left: 26px;width: 100px;">{{$t('Dialog.confirm_btn')}}</el-button>
+        <el-button @click="chooseFolderDiaShow=false" size="medium" style="width: 100px;">{{$t('Dialog.cancel_btn')}}</el-button>
       </div>
     </el-dialog>
   </div>
@@ -220,6 +222,10 @@ import 'streamsaver/examples/zip-stream'
         }
     },
     methods:{
+      // 测试等下删除
+      ExchangeChinesEnglish(){
+      this.$i18n.locale =  this.$i18n.locale == 'zh' ? 'en' : 'zh'
+      },
       // 获取文件夹dom树
       getMenuTree(){
         cloudDiskInterface.fileTreeList().then(res=>{
@@ -244,7 +250,7 @@ import 'streamsaver/examples/zip-stream'
             this.buttonPermission.uploadResourceAuth = res.Data.UploadResourceAuth
             this.buttonPermission.batchDelete = res.Data.BatchDelAuth
             let temArr = res.Data.ListPath || []
-            this.breadCrumbsList = res.Data.ListPath?[{MenuId:0,MenuName:'全部',Selected:false,Sort:0}].concat(temArr):[]
+            this.breadCrumbsList = res.Data.ListPath?[{MenuId:0,MenuName:this.$t('ReportManage.CloudPage.everything'),Selected:false,Sort:0}].concat(temArr):[]
           }
         })
       },
@@ -266,14 +272,14 @@ import 'streamsaver/examples/zip-stream'
       },
       // 新建文件夹
       newFloder(){
-        this.dialogTitle='新建文件夹'
+        this.dialogTitle= this.$t('ReportManage.CloudPage.folder_btn')
         this.newDialogShow=true
         this.newOrRenameForm.itemValue=""
       },
       // 上传文件
       uploadFilePre(){
         if(this.currentMenuId == 0){
-          this.dialogTitle='选择文件夹'
+          this.dialogTitle= this.$t('ReportManage.CloudPage.select_folder_title')
           this.chooseFolderDiaShow=true
         }else{
           this.uploadMenuId = this.currentMenuId
@@ -296,7 +302,7 @@ import 'streamsaver/examples/zip-stream'
       // 选择文件夹确认
       chooseFolderconFirm(){
         if(!this.uploadMenuId || this.uploadMenuId==0){
-          this.$message.error('请选择文件夹目录')
+          this.$message.error( this.$t('ReportManage.CloudPage.upload_folder_error_msg'))
           return 
         }
         this.$refs.upload.$el.getElementsByTagName('input')[0].click()
@@ -334,7 +340,7 @@ import 'streamsaver/examples/zip-stream'
               // console.log(haveRepeatFiles);
               if(haveRepeatFiles && haveRepeatFiles.length>0){
                 // 有重复
-                this.$confirm(haveRepeatFiles.map(it => it.OriginName).join(',')+'已有同名文件,是否继续上传文件?','提示',{
+                this.$confirm(haveRepeatFiles.map(it => it.OriginName).join(',')+this.$t('ReportManage.CloudPage.upload_please_error_msg'), this.$t('Confirm.prompt'),{
                   type:'warning',
                   confirmButtonText: '保留两者',
                   cancelButtonText: '取消'
@@ -682,6 +688,7 @@ import 'streamsaver/examples/zip-stream'
       }
     },
     created(){
+      this.$i18n.locale = 'zh'
       this.currentMenuId=sessionStorage.getItem('cloudDiskMenuId') || 0
       this.getFileList()
       this.getMenuTree()

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
vendor-manifest.json


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác