فهرست منبع

文件中心翻译完成

Lijy 2 سال پیش
والد
کامیت
5cf909b117

+ 10 - 1
fhKeeper/formulahousekeeper/timesheet/src/i18n/en.json

@@ -1302,5 +1302,14 @@
   "quxiaoguanlan": "Are you sure you want to unlink this file?",
   "tasksgroupsDetalses": "The tasks under the group will also be deleted. Are you sure you want to delete this group?",
   "xuanzguanlianwenjian": "Please select an associated file",
-  "yi-shang-chuan": "uploaded"
+  "yi-shang-chuan": "uploaded",
+  "createafolder": "Create folder",
+  "creator": "creator",
+  "da-xiao": "size",
+  "fileupload": "File Upload",
+  "library": "file library",
+  "modifyingFolder": "Add/Modify Folder",
+  "pleaseenterfoldername": "Please enter a folder name",
+  "recentdocuments": "recent documents",
+  "wanttomove": "Are you sure you want to move to trash?"
 }

+ 10 - 1
fhKeeper/formulahousekeeper/timesheet/src/i18n/zh.json

@@ -1302,5 +1302,14 @@
   "tasksgroupsDetalses": "分组下的任务也将一同删除,您确认删除该分组吗?",
   "qngxuanz": "请选择模板",
   "projectalreadyhasgroup": "当前项目已存在分组",
-  "changethegroupname": "请修改组名后重试。"
+  "changethegroupname": "请修改组名后重试。",
+  "library": "文件库",
+  "createafolder": "创建文件夹",
+  "fileupload": "文件上传",
+  "recentdocuments": "近期文件",
+  "da-xiao": "大小",
+  "creator": "创建者",
+  "modifyingFolder": "新增/修改文件夹",
+  "pleaseenterfoldername": "请输入文件夹名称",
+  "wanttomove": "确认要移到回收站吗?"
 }

+ 19 - 19
fhKeeper/formulahousekeeper/timesheet/src/views/project/fileCenter.vue

@@ -15,19 +15,19 @@
             </el-form>
         </el-col> -->
         <div style="padding: 20px;background:#fff;border-bottom:1px solid #ddd;font-weight:500;font-size:15px;">
-            <span @click="viewFolder(null)" style="color: #409EFF;cursor: pointer;">文件库</span>
+            <span @click="viewFolder(null)" style="color: #409EFF;cursor: pointer;">{{ $t('library') }}</span>
             <span v-for="path in pathList" :key="path.id" @click="viewFolder(path)" class="mianbaoxie"> <i class="el-icon-arrow-right jianto"></i> {{path.documentName}}</span>
             <span style="float:right;">
-                    <el-link type="primary" :underline="false" @click="createFolder"><i class="el-icon-folder-add"></i><span style="margin-left:5px;">创建文件夹</span></el-link>
+                    <el-link type="primary" :underline="false" @click="createFolder"><i class="el-icon-folder-add"></i><span style="margin-left:5px;">{{ $t('createafolder') }}</span></el-link>
                     <el-upload ref="upload" action="#" :http-request="uploadFile" :show-file-list="false" :limit="1" style="display:inline-block;">
-                        <el-link type="primary" :underline="false" style="margin-left:10px;"><i class="iconfont firerock-iconshangchuan"></i><span style="margin-left:5px;">文件上传</span></el-link>
+                        <el-link type="primary" :underline="false" style="margin-left:10px;"><i class="iconfont firerock-iconshangchuan"></i><span style="margin-left:5px;">{{ $t('fileupload') }}</span></el-link>
                     </el-upload>
             </span>
         </div>
         <div>
         <el-col :span="6" style="border-right: 1px solid #EBEEF5;">
             <el-table :data="recentFiles" highlight-current-row :height="tableHeight">
-                <el-table-column prop="documentName" label="近期文件" sortable="true">
+                <el-table-column prop="documentName" :label="$t('recentdocuments')" sortable="true">
                     <template slot-scope="scope">
                         <!-- <el-link @click.stop.native="viewOnline(scope.row)"> -->
                         <i v-if="scope.row.documentType == -1" class="iconfont firerock-iconfile fileTypeIcon"></i>
@@ -47,7 +47,7 @@
         <el-col :span="18" >
             <el-table :data="list" highlight-current-row :height="tableHeight" style="width: 100%;"  @row-click="rowClick" @cell-mouse-enter="cursorOver" >
                 <!-- <el-table-column prop="folder" ></el-table-column> -->
-                <el-table-column prop="documentName" label="名称" >
+                <el-table-column prop="documentName" :label="$t('names')" >
                     <template slot-scope="scope" >
                         <div v-if="scope.row.isFolder==1">
                             <i class="el-icon-folder fileTypeIcon"></i><span style="margin-left:8px;color:#262626;" >{{scope.row.documentName}}</span>
@@ -61,13 +61,13 @@
                         </div>
                     </template>
                 </el-table-column>
-                <el-table-column prop="size" label="大小" width="100">
+                <el-table-column prop="size" :label="$t('da-xiao')" width="100">
                     <template slot-scope="scope">
                         {{scope.row.isFolder==0?scope.row.size:"-"}}
                     </template>
                 </el-table-column>
-                <el-table-column prop="creatorName" label="创建者" width="100"></el-table-column>
-                <el-table-column prop="indate" label="创建时间" sortable="true" width="100"></el-table-column>
+                <el-table-column prop="creatorName" :label="$t('creator')" width="100"></el-table-column>
+                <el-table-column prop="indate" :label="$t('creationtime')" sortable="true" width="100"></el-table-column>
                 <el-table-column width="140">
                     <template slot-scope="scope" >
                     <div v-show="currentDataId == scope.row.id">
@@ -82,33 +82,33 @@
         </div>
         
         <!--新增界面-->
-        <el-dialog title="文件上传" v-if="addFormVisible" :visible.sync="addFormVisible" :close-on-click-modal="false" customClass="customWidth" width="600px">
+        <el-dialog :title="$t('fileupload')" v-if="addFormVisible" :visible.sync="addFormVisible" :close-on-click-modal="false" customClass="customWidth" width="600px">
             <el-form ref="form1" :model="addForm" :rules="rules" label-width="120px">
-                <el-form-item label="截止日期" prop="planEndDate">
+                <el-form-item :label="$t('expirationdate')" prop="planEndDate">
                     <el-date-picker v-model="addForm.planEndDate" v-if="user.company.packageProject==1" 
                      :editable="false" 
                      format="yyyy-MM-dd" 
                      value-format="yyyy-MM-dd"
                      :clearable="false" type="date" 
-                     placeholder="选择日期"></el-date-picker>
+                     :placeholder="$t('optiondate')"></el-date-picker>
                 </el-form-item>
             </el-form>
             <div slot="footer" class="dialog-footer">
-                <el-button @click.native="addFormVisible = false">取消</el-button>
-                <el-button type="primary" @click="submitInsert" :loading="addLoading">提交</el-button>
+                <el-button @click.native="addFormVisible = false">{{ $t('btn.cancel') }}</el-button>
+                <el-button type="primary" @click="submitInsert" :loading="addLoading">{{ $t('btn.submit') }}</el-button>
             </div>
         </el-dialog>
 
          <!-- 文件夹弹出框 -->
-        <el-dialog title="新增/修改文件夹" v-if="addFolderDialog" :visible.sync="addFolderDialog" :close-on-click-modal="false" customClass="customWidth" width="300px">
+        <el-dialog :title="$t('modifyingFolder')" v-if="addFolderDialog" :visible.sync="addFolderDialog" :close-on-click-modal="false" customClass="customWidth" width="300px">
             <el-form ref="form2" :model="folderForm" :rules="rules" >
                 <el-form-item prop="documentName">
-                    <el-input v-model="folderForm.documentName" placeholder="请输入文件夹名称" maxlength="25"
+                    <el-input v-model="folderForm.documentName" :placeholder="$t('pleaseenterfoldername')" maxlength="25"
                         show-word-limit clearable></el-input>
                 </el-form-item>
             </el-form>
             <div slot="footer" class="dialog-footer">
-                <el-button type="primary" @click="addFolder" style="width:100%;" >保存</el-button>
+                <el-button type="primary" @click="addFolder" style="width:100%;" >{{ $t('save') }}</el-button>
             </div>
         </el-dialog>
         </div>
@@ -141,7 +141,7 @@
                 ,"iconfont firerock-iconex","iconfont firerock-iconZip","iconfont firerock-iconvideo"
                 ,"iconfont firerock-iconaudio","iconfont firerock-iconPDF"],
                 rules: {
-                    documentName: [{ required: true, message: "请输入文件夹名称", trigger: "blur" }],
+                    documentName: [{ required: true, message: this.$t('pleaseenterfoldername'), trigger: "blur" }],
                 },
                 folderForm:{},
                 addFolderDialog: false,
@@ -192,7 +192,7 @@
                 })
             },
             deleteItem(row) {
-                this.$confirm("确认要移到回收站吗?", "提示", {
+                this.$confirm(this.$t('wanttomove'), this.$t('other.prompts'), {
                     //type: 'warning'
                 }).then(() => {
                     this.http.post('/document/delete', row,
@@ -312,7 +312,7 @@
                     this.$refs.upload.clearFiles();
                     if (res.code == "ok") {
                         this.$message({
-                            message: "上传成功",
+                            message: this.$t('uploadedsuccessfully'),
                             type: 'success'
                         });
                         this.getList();