فهرست منبع

提交task文件翻译

Lijy 10 ماه پیش
والد
کامیت
216b28f36a

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

@@ -1956,5 +1956,14 @@
   "yuCiYue": "In the following month",
   "yuanGongZiYouXuanZeShenPiRen": "Employees are free to choose approvers",
   "zhiShuHuoBuMenFuZeRenShenHeXiangMuRiBaoShenHeRenShenHe": "Direct or department head review ->Project daily report review by reviewer",
-  "zhiShuShenHeRenHuoBuMenFuZeRenShenHe": "Reviewed by the direct reviewer or department head"
+  "zhiShuShenHeRenHuoBuMenFuZeRenShenHe": "Reviewed by the direct reviewer or department head",
+  "chengGongFaQiHuiYi": "Successfully initiated the meeting",
+  "daiBanRenWuDaoChuXlsx": "To Do Task Export.xlsx",
+  "faQiHuiYi": "sponsor a conference",
+  "huiYiJieShuShiJian": "Meeting end time",
+  "huiYiKaiShiShiJian": "Meeting start time",
+  "qingXuanZeZeRenRen": "Please select the responsible person",
+  "xinJianRenWu": "New Task",
+  "xuanZeRiQiShiJian": "Select date and time",
+  "zhongQiRenWu": "Restart task"
 }

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

@@ -1956,5 +1956,14 @@
   "anZhaoQiYeQingKuangTiaoZheng": "按照企业情况调整",
   "qingXianDianJiXiTongJiChuSheZhi": "请先点击系统基础设置",
   "tiaoGuo": "跳过",
-  "queDingShanChuZheTiaoShuJuMa": "确定删除这条数据吗?"
+  "queDingShanChuZheTiaoShuJuMa": "确定删除这条数据吗?",
+  "xinJianRenWu": "新建任务",
+  "zhongQiRenWu": "重启任务",
+  "qingXuanZeZeRenRen": "请选择责任人",
+  "faQiHuiYi": "发起会议",
+  "huiYiKaiShiShiJian": "会议开始时间",
+  "xuanZeRiQiShiJian": "选择日期时间",
+  "huiYiJieShuShiJian": "会议结束时间",
+  "chengGongFaQiHuiYi": "成功发起会议",
+  "daiBanRenWuDaoChuXlsx": "待办任务导出.xlsx"
 }

+ 26 - 26
fhKeeper/formulahousekeeper/timesheet/src/views/task/list.vue

@@ -21,7 +21,7 @@
                     ></el-cascader>
                 </el-form-item>
 
-                <el-form-item :label="'部门'" v-if="!user.timeType.projectWithDept">
+                <el-form-item :label="$t('lable.department')" v-if="!user.timeType.projectWithDept">
                     <div style="margin-left: 8px">
                         <el-cascader v-if="user.userNameNeedTranslate != 1" v-model="screenDeptId" :placeholder="$t('defaultText.pleaseChoose')" style="width: 125px"
                         :options="departmentList" :props="{ checkStrictly: true,expandTrigger: 'hover' }" :show-all-levels="false" clearable
@@ -41,7 +41,7 @@
                     </div>
                 </el-form-item>
 
-                <el-form-item :label="'项目'">
+                <el-form-item :label="$t('other.project')">
                     <div style="margin-left: 8px">
                         <el-select v-model="screenProjectId" filterable style="width:150px;" size="small" slot="prepend" :placeholder="$t('defaultText.pleaseChoose')" clearable @change="screenProjectChange">
                             <el-option v-for="item in allProjectList" :key="item.id"  :label="item.projectName" :value="item.id"></el-option>
@@ -49,7 +49,7 @@
                     </div>
                 </el-form-item>
 
-                <el-form-item :label="'任务分组'">
+                <el-form-item :label="$t('lable.taskGrouping')">
                     <div style="margin-left: 8px">
                         <el-select v-model="screenTaskGroupingId" style="width:150px;" size="small" :disabled="!screenProjectId" slot="prepend" :placeholder="$t('defaultText.pleaseChoose')" clearable @change="hiddens()">
                             <el-option v-for="item in taskGroupList" :key="item.id" :label="item.name" :value="item.id"></el-option>
@@ -57,7 +57,7 @@
                     </div>
                 </el-form-item>
 
-                <el-form-item :label="'人员'">
+                <el-form-item :label="$t('ren-yuan')">
                     <div style="margin-left: 8px">
                         <el-select v-model="screenPersonnelId" filterable style="width:120px;" size="small" slot="prepend" :placeholder="$t('defaultText.pleaseChoose')" clearable @change="hiddens()" v-if="user.userNameNeedTranslate != '1'">
                             <el-option v-for="item in users" :key="item.id" :label="item.name" :value="item.id"></el-option>
@@ -91,8 +91,8 @@
                     </div>
                 </el-form-item>
                 <el-form-item style="float: right;" v-if="user.companyId != '3092'">
-                     <el-link type="primary" icon="el-icon-circle-plus-outline" :underline="false" @click="addTask()">新建任务</el-link>
-                     <el-link type="primary" :underline="false" @click="exportTaskList()" style="margin-left: 20px;" v-loading="exportTaskLoading">导出</el-link>
+                     <el-link type="primary" icon="el-icon-circle-plus-outline" :underline="false" @click="addTask()">{{ $t('xinJianRenWu') }}</el-link>
+                     <el-link type="primary" :underline="false" @click="exportTaskList()" style="margin-left: 20px;" v-loading="exportTaskLoading">{{ $t('export.export') }}</el-link>
                 </el-form-item>
             </el-form>
         </el-col>
@@ -119,12 +119,12 @@
                     </el-table-column>
                     <el-table-column prop="stagesName" :label="$t('taskstage')" sortable width="180" @mouseover="mouseOver">
                     </el-table-column>
-                    <el-table-column prop="taskLevel" label="优先级" sortable width="100">
+                    <el-table-column prop="taskLevel" :label="$t('priority')" sortable width="100">
                         <template slot-scope="scope">
                             <div>
-                                <span v-if="scope.row.taskLevel == 0">一般</span>
-                                <span v-if="scope.row.taskLevel == 1" style="color: #E6A23C">重要</span>
-                                <span v-if="scope.row.taskLevel == 2" style="color: #F56C6C">紧急</span>
+                                <span v-if="scope.row.taskLevel == 0">{{ $t('yi-ban') }}</span>
+                                <span v-if="scope.row.taskLevel == 1" style="color: #E6A23C">{{ $t('zhong-yao') }}</span>
+                                <span v-if="scope.row.taskLevel == 2" style="color: #F56C6C">{{ $t('jin-ji') }}</span>
                             </div>
                         </template>
                     </el-table-column>
@@ -184,14 +184,14 @@
                 </el-table>
 
                 <!-- 重启时输入原因 -->
-                <el-dialog title="重启任务" :visible.sync="causeRejectionDialog" width="600px" :before-close="handleClose">
+                <el-dialog :title="$t('zhongQiRenWu')" :visible.sync="causeRejectionDialog" width="600px" :before-close="handleClose">
                     <div>
                         <el-form ref="causeRejectionForm" :model="causeRejectionForm" label-width="80px">
-                            <el-form-item label="重启原因">
+                            <el-form-item :label="$t('zhongQiYuanYin')">
                                 <el-input type="textarea" v-model.trim="causeRejectionForm.cause"></el-input>
                             </el-form-item>
-                            <el-form-item label="责任人">
-                                <el-select v-if="user.userNameNeedTranslate != '1'" multiple collapse-tags v-model="causeRejectionForm.responsible" size="small" filterable clearable placeholder="请选择责任人" @change="$forceUpdate()">
+                            <el-form-item :label="$t('zeRenRen')">
+                                <el-select v-if="user.userNameNeedTranslate != '1'" multiple collapse-tags v-model="causeRejectionForm.responsible" size="small" filterable clearable :placeholder="$t('qingXuanZeZeRenRen')" @change="$forceUpdate()">
                                     <el-option v-for="item in causeRejectionForm.users" :key="item.id" :label="item.name" :value="item.id">
                                         <span style="float: left">{{ item.name }}</span>
                                         <span style="float: right; color: #8492a6; font-size: 13px;margin-left: 20px;margin-right: 20px" v-if="item.jobNumber">{{ item.jobNumber }}</span>
@@ -204,8 +204,8 @@
                         </el-form>
                     </div>
                     <span slot="footer" class="dialog-footer">
-                        <el-button @click="causeRejectionDialog = false">取 消</el-button>
-                        <el-button type="primary" @click="causeRejectionClick()">确 定</el-button>
+                        <el-button @click="causeRejectionDialog = false">{{ $t('quXiao') }}</el-button>
+                        <el-button type="primary" @click="causeRejectionClick()">{{ $t('queDing') }}</el-button>
                     </span>
                 </el-dialog>
 
@@ -276,25 +276,25 @@
         </el-dialog>
 
         <!-- 发起会议 -->
-            <el-dialog title="发起会议" :visible.sync="meeting" width="500px" :before-close="handleClose" style="z-index: 2020 !important ">
+            <el-dialog :title="$t('faQiHuiYi')" :visible.sync="meeting" width="500px" :before-close="handleClose" style="z-index: 2020 !important ">
                 <div class="block">
                     <div>
-                        <span class="demonstration">会议开始时间</span>
+                        <span class="demonstration">{{ $t('huiYiKaiShiShiJian') }}</span>
                         <el-date-picker
                         v-model="meetingStartValue"
                         type="datetime"
-                        placeholder="选择日期时间"
+                        :placeholder="$t('xuanZeRiQiShiJian')"
                         value-format="yyyy-MM-dd HH:mm:ss"
                         clearable
                         default-time="10:00:00">
                         </el-date-picker>
                     </div>
                     <div style="margin-top: 20px">
-                        <span class="demonstration">会议结束时间</span>
+                        <span class="demonstration">{{ $t('huiYiJieShuShiJian') }}</span>
                         <el-date-picker
                         v-model="meetingEndValue"
                         type="datetime"
-                        placeholder="选择日期时间"
+                        :placeholder="$t('xuanZeRiQiShiJian')"
                         value-format="yyyy-MM-dd HH:mm:ss"
                         clearable.
                         default-time="11:00:00">
@@ -302,8 +302,8 @@
                     </div>
                 </div>
                 <span slot="footer" class="dialog-footer">
-                    <el-button @click="meeting = false">取 消</el-button>
-                    <el-button type="primary" @click="confirmMeeting()">确 定</el-button>
+                    <el-button @click="meeting = false">{{ $t('quXiao') }}</el-button>
+                    <el-button type="primary" @click="confirmMeeting()">{{ $t('queDing') }}</el-button>
                 </span>
             </el-dialog>
 
@@ -677,7 +677,7 @@ import { error } from 'dingtalk-jsapi';
                     if (res.code == "ok") {
                         this.meeting=false,
                         this.$message({
-                        message: "成功发起会议",
+                        message: this.$t('chengGongFaQiHuiYi'),
                         type: "success"
                         });
                     } else {
@@ -828,7 +828,7 @@ import { error } from 'dingtalk-jsapi';
                     res => {
                     if (res.code == "ok") {
                         var filePath = res.data;
-                        var fName = '待办任务导出.xlsx'
+                        var fName = this.$t('daiBanRenWuDaoChuXlsx')
                         const a = document.createElement('a'); // 创建a标签
                         a.setAttribute('download', fName);// download属性
                         a.setAttribute('href', filePath);// href链接
@@ -1068,7 +1068,7 @@ import { error } from 'dingtalk-jsapi';
                     if (res.code == "ok") {
                         this.exportTaskLoading = false;
                         var aTag = document.createElement('a');
-                        aTag.download = '待办任务';
+                        aTag.download = this.$t('navigation.upcomingTasks');
                         aTag.href = res.data;
                         aTag.click();
                     } else {