Browse Source

提交project文件夹下的的fileCenter文件翻译

Lijy 10 months ago
parent
commit
7d14be9cd1

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

@@ -1765,5 +1765,14 @@
   "buMenChengBen": "Departmental costs:",
   "gongShi": "Working hours:",
   "gongZuoChengBen": "Work cost:",
-  "xiangMuMingCheng": "Project Name:"
+  "xiangMuMingCheng": "Project Name:",
+  "bianJiMoRenMoBan": "Edit default template",
+  "jieDian": "node",
+  "moBanMa": "Is it a template",
+  "moRenWenJianJia": "Default folder",
+  "qingShuRuJieDianMingCheng": "Please enter the node name",
+  "queDingShanChu": "Confirm deletion",
+  "tongBuXiuGaiQiTaXiangMuZhongDeTongMingWenJianJia": "Synchronize and modify folders with the same name in other projects",
+  "xinZengJieDian": "Add nodes",
+  "ziDingYiMingCheng": "Custom Name"
 }

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

@@ -1765,5 +1765,14 @@
   "buMenChengBen": "部门成本:",
   "gongShi": "工时 :",
   "xiangMuMingCheng": "项目名称:",
-  "gongZuoChengBen": "工作成本 :"
+  "gongZuoChengBen": "工作成本 :",
+  "moRenWenJianJia": "默认文件夹",
+  "ziDingYiMingCheng": "自定义名称",
+  "tongBuXiuGaiQiTaXiangMuZhongDeTongMingWenJianJia": "同步修改其他项目中的同名文件夹",
+  "bianJiMoRenMoBan": "编辑默认模板",
+  "xinZengJieDian": "新增节点",
+  "qingShuRuJieDianMingCheng": "请输入节点名称",
+  "queDingShanChu": "确定删除",
+  "moBanMa": "模板吗",
+  "jieDian": "节点"
 }

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

@@ -8,7 +8,7 @@
             <span style="float:right;">
                 <!-- <el-link type="primary" :underline="false" v-if="list.length
                 > 0"><i class="el-icon-setting"></i><span style="margin-right:5px;" @click="templatedialingClick('设为模板')">设为模板</span></el-link> -->
-                    <el-link type="primary" :underline="false" @click="defaultTemplate" v-if="permissions.projectEditDefaultFolder"><i class="el-icon-folder-add"></i><span style="margin-left:5px;">默认文件夹</span></el-link>
+                    <el-link type="primary" :underline="false" @click="defaultTemplate" v-if="permissions.projectEditDefaultFolder"><i class="el-icon-folder-add"></i><span style="margin-left:5px;">{{ $t('moRenWenJianJia') }}</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;">{{ $t('fileupload') }}</span></el-link>
@@ -113,7 +113,7 @@
         <el-dialog :title="$t('modifyingFolder')" v-if="addFolderDialog" :visible.sync="addFolderDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
             <div class="titleBox">
                 <el-tabs v-model="activeName" @tab-click="handleClick" v-if="!addFolderDialogTwo">
-                    <el-tab-pane label="自定义名称" name="one">
+                    <el-tab-pane :label="$t('ziDingYiMingCheng')" name="one">
                         <el-form ref="form2" :model="folderForm" :rules="rules" style="margin-top: 10px">
                             <el-form-item prop="documentName">
                                 <el-input v-model="folderForm.documentName" :placeholder="$t('pleaseenterfoldername')" maxlength="25"
@@ -145,7 +145,7 @@
                             show-word-limit clearable></el-input>
                     </el-form-item>
                     <el-form-item >
-                        <el-checkbox v-model="folderForm.syncChange">同步修改其他项目中的同名文件夹</el-checkbox>
+                        <el-checkbox v-model="folderForm.syncChange">{{ $t('tongBuXiuGaiQiTaXiangMuZhongDeTongMingWenJianJia') }}</el-checkbox>
                     </el-form-item>
                 </el-form>
             </div>
@@ -156,7 +156,7 @@
         </el-dialog>
 
         <!-- 设为模板 -->
-        <el-dialog :title="'编辑默认模板'" v-if="templatedialing" :visible.sync="templatedialing" :close-on-click-modal="false" customClass="customWidth" width="500px">
+        <el-dialog :title="$t('bianJiMoRenMoBan')" v-if="templatedialing" :visible.sync="templatedialing" :close-on-click-modal="false" customClass="customWidth" width="500px">
             <div>
                 <div class="filrTree">
                     <el-tree
@@ -184,12 +184,12 @@
         </el-dialog>
 
         <!-- 添加子节点 -->
-        <el-dialog :title="'新增节点'" v-if="addtemplateNodeDailoing" :visible.sync="addtemplateNodeDailoing" :close-on-click-modal="false" customClass="customWidth" width="500px">
+        <el-dialog :title="$t('xinZengJieDian')" v-if="addtemplateNodeDailoing" :visible.sync="addtemplateNodeDailoing" :close-on-click-modal="false" customClass="customWidth" width="500px">
             <div>
                 <el-form :model="nodeForm" ref="nodeForm" label-width="100px" class="demo-ruleForm">
-                    <el-form-item label="节点名称" prop="name"
+                    <el-form-item :label="$t('nameofthenode')" prop="name"
                         :rules="[
-                            { required: true, message: '请输入节点名称'}
+                            { required: true, message: $t('qingShuRuJieDianMingCheng')}
                         ]"
                     >
                         <el-input v-model="nodeForm.name"></el-input>
@@ -197,16 +197,16 @@
                 </el-form>
             </div>
             <div slot="footer" class="dialog-footer">
-                <el-button type="primary" style="width:100%;" @click="addtemplateNode('nodeForm')">确定</el-button>
+                <el-button type="primary" style="width:100%;" @click="addtemplateNode('nodeForm')">{{ $t('btn.determine') }}</el-button>
             </div>
         </el-dialog>
         <!-- 点击第一级的节点 -->
-        <el-dialog :title="'新增节点'" v-if="addtemplateTwoNodeDailoing" :visible.sync="addtemplateTwoNodeDailoing" :close-on-click-modal="false" customClass="customWidth" width="500px">
+        <el-dialog :title="$t('xinZengJieDian')" v-if="addtemplateTwoNodeDailoing" :visible.sync="addtemplateTwoNodeDailoing" :close-on-click-modal="false" customClass="customWidth" width="500px">
             <div>
                 <el-form :model="nodeForm" ref="nodeForms" label-width="100px" class="demo-ruleForm">
-                    <el-form-item label="节点名称" prop="name"
+                    <el-form-item label="$t('nameofthenode')" prop="name"
                         :rules="[
-                            { required: true, message: '请输入节点名称'}
+                            { required: true, message: $t('qingShuRuJieDianMingCheng')}
                         ]"
                     >
                         <el-input v-model="nodeForm.name"></el-input>
@@ -214,16 +214,16 @@
                 </el-form>
             </div>
             <div slot="footer" class="dialog-footer">
-                <el-button type="primary" style="width:100%;" @click="addtemplateTwoNode('nodeForms')">确定</el-button>
+                <el-button type="primary" style="width:100%;" @click="addtemplateTwoNode('nodeForms')">{{ $t('btn.determine') }}</el-button>
             </div>
         </el-dialog>
         <!-- 编辑节点的名称 -->
-        <el-dialog :title="'新增节点'" v-if="addtemplateNodeNameDailoing" :visible.sync="addtemplateNodeNameDailoing" :close-on-click-modal="false" customClass="customWidth" width="500px">
+        <el-dialog :title="$t('xinZengJieDian')" v-if="addtemplateNodeNameDailoing" :visible.sync="addtemplateNodeNameDailoing" :close-on-click-modal="false" customClass="customWidth" width="500px">
             <div>
                 <el-form :model="nodeForm" ref="nodeFormss" label-width="100px" class="demo-ruleForm">
-                    <el-form-item label="节点名称" prop="name"
+                    <el-form-item label="$t('nameofthenode')" prop="name"
                         :rules="[
-                            { required: true, message: '请输入节点名称'}
+                            { required: true, message: $t('qingShuRuJieDianMingCheng')}
                         ]"
                     >
                         <el-input v-model="nodeForm.name"></el-input>
@@ -231,7 +231,7 @@
                 </el-form>
             </div>
             <div slot="footer" class="dialog-footer">
-                <el-button type="primary" style="width:100%;" @click="editTemplateNodeName('nodeFormss')">确定</el-button>
+                <el-button type="primary" style="width:100%;" @click="editTemplateNodeName('nodeFormss')">{{ $t('btn.determine') }}</el-button>
             </div>
         </el-dialog>
 
@@ -414,16 +414,16 @@
                 this.nodeForm.name = data.label
             },
             removeTemplate(data) {
-                this.$confirm(`确定删除【${data.name}】模板吗?`, '提示', {
-                    confirmButtonText: '确定',
-                    cancelButtonText: '取消',
+                this.$confirm(`${this.$t('queDingShanChu')}【${data.name}】${this.$t('moBanMa')}?`, this.$t('other.prompts'), {
+                    confirmButtonText: this.$t('btn.determine'),
+                    cancelButtonText: this.$t('btn.cancel'),
                     type: 'warning'
                 }).then(() => {
                     this.http.post('/project-document-template/delete', {id: data.id},
                         res => {
                             if (res.code == "ok") {
                                 this.$message({
-                                    message: `删除成功`,
+                                    message: this.$t('message.successfullyDeleted'),
                                     type: 'success'
                                 });
                                 this.getTemplateList()
@@ -450,7 +450,7 @@
                             this.templateDataTreeDaylong = false
                             if (res.code == "ok") {
                                 this.$message({
-                                    message: `操作成功`,
+                                    message: this.$t('operationissuccessful'),
                                     type: 'success'
                                 });
                             } else {this.$message({message: res.msg,type: 'error'});}
@@ -484,7 +484,7 @@
                     this.templateDataTreeDaylong = false
                     if (res.code == "ok") {
                         this.$message({
-                            message: `操作成功`,
+                            message: this.$t('operationissuccessful'),
                             type: 'success'
                         });
                         this.templatedialing = false
@@ -551,9 +551,9 @@
             },
             
             removeNode(node, data) {
-                this.$confirm(`确定删除(${data.label})节点?`, '提示', {
-                    confirmButtonText: '确定',
-                    cancelButtonText: '取消',
+                this.$confirm(`${this.$t('queDingShanChu')}(${data.label})${this.$t('jieDian')}?`, this.$t('other.prompts'), {
+                    confirmButtonText: this.$t('btn.determine'),
+                    cancelButtonText: this.$t('btn.cancel'),
                     type: 'warning'
                 }).then(() => {
                     const parent = node.parent;