Parcourir la source

Merge branch 'master' of http://47.100.37.243:10080/wutt/manHourHousekeeper

ggooalice il y a 2 ans
Parent
commit
d1a21ab24e

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

@@ -899,5 +899,86 @@
   "gong-neng": "Function",
   "operationwilldelete": "This action will delete",
   "quanxianshuju": "Permissions Data Sheet",
-  "shifujuxu": "role, continue?"
+  "shifujuxu": "role, continue?",
+  "employeehourlywage": "Employee hourly wage entry method settings",
+  "methodsa": "Method 1: Enter the monthly cost and automatically calculate the hourly salary",
+  "suitableforfulltimeemployees": "(Suitable for full-time corporate employees)",
+  "dailyworkinghours": "Normal working hours per day",
+  "workingdayspermonth": "Average working days per month",
+  "hoursreporteperday": "Lock the upper limit of daily reporting hours",
+  "imitillingtime": "Fill in the time limit",
+  "lockingworkinghours": "Lock working hours",
+  "chargedtocost": "Overtime hours charged to cost",
+  "hourscanbereported": "Reportable overtime hours",
+  "workSettings": "Overtime settings",
+  "bei-gong-zi": "double salary",
+  "employeeworkinghours": "Employee working hours reporting method settings",
+  "reportintheafternoon": "All day/morning/afternoon convenient reporting",
+  "settheduration": "Please set the duration",
+  "timeemployees": "(Suitable for hourly workers and part-time workers who are paid on time)",
+  "visittwo": "Method 2: Enter the hourly salary directly",
+  "addTian": "Add to",
+  "afternoontime": "afternoon time",
+  "chooseyourownhours": "Choose your own working hours",
+  "daylong": "full day",
+  "filledinadvance": "Can be filled in in advance",
+  "filltime": "fill time",
+  "instructions": "(Note: The system administrator is not limited by the filling time when filling out the daily report for the employee)",
+  "missingfill": "Daily reminder missed filling on the day",
+  "missingfills": "Daily reminder missed yesterday",
+  "morningtime": "morning time",
+  "owntimeframe": "Choose your own time frame",
+  "personneltoset": "Don't remind people settings",
+  "pointintime": "any point in time",
+  "reminderSettings": "Fill in the reminder settings",
+  "remindermethod": "Please select a reminder method",
+  "remindertext": "reminder text",
+  "remindertime": "reminder time",
+  "settingrestPeriod": "Set a break time period",
+  "showthesample": "Show example",
+  "timeproportionally": "Prorated time",
+  "timesetting": "Employee fill in daily report time setting",
+  "dailyreview": "Daily automatic review time limit:",
+  "dang-tian": "the day",
+  "dyas": "diva",
+  "oneday": "the next day",
+  "shreeday": "day three",
+  "timelydate": "Employee fills out the date and time",
+  "afteritisenabled": "After opening, the system can classify the labor cost according to the field data.",
+  "dailyfilling": "Custom Daily Filling List",
+  "datamaintenance": "data maintenance",
+  "fieldnames": "Field Name",
+  "parametermandatory": "Is it required",
+  "dailyfillingvalue": "Custom daily report value",
+  "afterthisunctionisenabled": "After opening, the value can be counted by project, department and person",
+  "additionalinformation": "After opening, employees can fill in additional information",
+  "eachdepartment": "The reviewer is the direct leader of each department",
+  "fillingtext": "Custom daily report text",
+  "importauditing": "Whether to enable import auditing",
+  "maintenanceDatalist": "Maintain data list",
+  "maximum": "maximum value",
+  "maximumvaluelimit": "Whether to enable the maximum limit",
+  "addData": "Add data",
+  "xin-zeng-shi-jian-duan": "Add time period",
+  "xiu-gai": "Revise",
+  "keywordfiltering": "Enter keywords to filter",
+  "canbefilled": "Only fill in the current month",
+  "donlimit": "not limited",
+  "lastlastmonth": "Can be filled up to the previous month",
+  "lastmonth": "Can be filled up to last month",
+  "newspaperwithin": "Daily newspapers can be filled within 7 days",
+  "previousdaydaily": "You can fill in the daily newspaper 1 day before",
+  "afternoonworkinghours": "Please enter the working hours in the afternoon",
+  "dayworkinghours": "Please select full working hours",
+  "morningworkinghours": "Please enter the working hours in the morning",
+  "addsuccessful": "Added successfully",
+  "cannotbedeleted": "This data is in use and cannot be deleted",
+  "customDailyFillingList": "Please enter the field name of [Custom Daily Filling List]",
+  "customDailyFillingLists": "Please enter the field name of [Custom Daily Report Value]",
+  "customDailyFillingListss": "Please enter the field name of [Custom Daily Filling Text]",
+  "overtimepay": "Please set several times the salary for overtime",
+  "qing-xuan-ze-shi-jian-duan": "Please select a time period",
+  "shu-ju-ma": "data?",
+  "takethisone": "sure you want this",
+  "wu-fa-shan-chu-1": "Can't delete 1"
 }

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

@@ -899,5 +899,86 @@
   "administratorcannotbeedited": "超级管理员为固定的默认角色无法编辑",
   "operationwilldelete": "此操作将删除",
   "shifujuxu": "角色, 是否继续?",
-  "quanxianshuju": "权限数据表"
+  "quanxianshuju": "权限数据表",
+  "employeehourlywage": "员工时薪录入方式设置",
+  "methodsa": "方式一: 录入月成本,自动计算时薪",
+  "suitableforfulltimeemployees": "(适合企业全职员工)",
+  "workingdayspermonth": "平均每月工作天数",
+  "dailyworkinghours": "每日正常工作时长",
+  "lockingworkinghours": "锁定工作时长",
+  "hoursreporteperday": "锁定每日填报工时的上限",
+  "imitillingtime": "填报时长上限",
+  "workSettings": "加班设置",
+  "hourscanbereported": "可填报加班时长",
+  "chargedtocost": "加班工时记入成本",
+  "bei-gong-zi": "倍工资",
+  "visittwo": "方式二:直接录入时薪",
+  "timeemployees": "(适合计时发放酬劳的小时工,兼职员工)",
+  "employeeworkinghours": "员工工作时长上报方式设置",
+  "reportintheafternoon": "全天/上午/下午便捷上报",
+  "settheduration": "请设置时长",
+  "daylong": "全天时长",
+  "morningtime": "上午时长",
+  "afternoontime": "下午时长",
+  "chooseyourownhours": "自行选择工作时长",
+  "showthesample": "展示样例",
+  "owntimeframe": "自行选择时间范围",
+  "pointintime": "任意时间点",
+  "settingrestPeriod": "设置休息时间段",
+  "timeproportionally": "按比例分配时间",
+  "reminderSettings": "填报提醒设置",
+  "remindertime": "提醒时间",
+  "remindermethod": "请选择提醒方式",
+  "missingfill": "每日提醒当天漏填",
+  "missingfills": "每日提醒昨天漏填",
+  "remindertext": "提醒文本",
+  "personneltoset": "不提醒人员设置",
+  "addTian": "添加",
+  "timesetting": "员工填报日报时间设置",
+  "filltime": "补填时间",
+  "instructions": "(说明:系统管理员为员工代填日报时不受补填时间的限制)",
+  "filledinadvance": "可提前填报",
+  "timelydate": "员工填报及时日",
+  "dang-tian": "当天",
+  "oneday": "第二天",
+  "shreeday": "第三天",
+  "dailyreview": "日报自动审核时限:",
+  "dyas": "天后",
+  "dailyfilling": "自定义日报填报列表",
+  "afteritisenabled": "开启后系统可按该字段数据进行分类统计工时成本",
+  "parametermandatory": "是否为必填项",
+  "fieldnames": "字段名称",
+  "datamaintenance": "数据维护",
+  "dailyfillingvalue": "自定义日报填报数值",
+  "afterthisunctionisenabled": "开启后可按项目,部门和人员统计该数值",
+  "maximumvaluelimit": "是否开启最大值限制",
+  "maximum": "最大值",
+  "fillingtext": "自定义日报填报文本",
+  "additionalinformation": "开启后可员工可额外填写该信息",
+  "importauditing": "是否开启导入审核",
+  "eachdepartment": "审核人为各部门直属领导",
+  "maintenanceDatalist": "维护数据列表",
+  "addData": "新增数据",
+  "xin-zeng-shi-jian-duan": "新增时间段",
+  "xiu-gai": "修改",
+  "keywordfiltering": "输入关键字进行过滤",
+  "donlimit": "不限制",
+  "canbefilled": "仅可补填当月",
+  "lastmonth": "可补填到上个月",
+  "lastlastmonth": "可补填到上上月",
+  "newspaperwithin": "可补填7天内日报",
+  "previousdaydaily": "可补填前1天日报",
+  "dayworkinghours": "请选择全天工作时长",
+  "morningworkinghours": "请输入上午工作时长",
+  "afternoonworkinghours": "请输入下午工作时长",
+  "qing-xuan-ze-shi-jian-duan": "请选择时间段",
+  "takethisone": "确定要这条",
+  "shu-ju-ma": "数据吗?",
+  "wu-fa-shan-chu-1": "无法删除1",
+  "cannotbedeleted": "该数据正在使用,无法删除",
+  "addsuccessful": "添加成功",
+  "customDailyFillingList": "请输入[自定义日报填报列表]的字段名称",
+  "customDailyFillingLists": "请输入[自定义日报填报数值]的字段名称",
+  "customDailyFillingListss": "请输入[自定义日报填报文本]的字段名称",
+  "overtimepay": "请设置加班几倍工资"
 }

+ 160 - 163
fhKeeper/formulahousekeeper/timesheet/src/views/settings/timetype.vue

@@ -2,80 +2,78 @@
     <section >
         <el-col :span="24" class="toolbar" style="padding-bottom: 0px;position:sticky;top:0;z-index:1002">
             <el-form :inline="true">
-                <el-form-item label="系统基础设置">
+                <el-form-item :label="$t('navigation.basicSystemSettings')">
                 </el-form-item>
                 <el-form-item  style="float:right">
-                    <el-button  type="primary" @click="submitInsert" :loading="addLoading">保存</el-button>
+                    <el-button  type="primary" @click="submitInsert" :loading="addLoading">{{ $t('save') }}</el-button>
                 </el-form-item>
             </el-form>
         </el-col>
-        <p style="padding-top:80px;margin: 0 0 10px 10px;color:#666;">员工时薪录入方式设置</p>
+        <p style="padding-top:80px;margin: 0 0 10px 10px;color:#666;">{{ $t('employeehourlywage') }}</p>
         <div class="panel" style="height:190px;margin-left:20px;margin-right:20px;">
-        <el-radio v-model="timeType.hourCostInputType" :label="0" style="width:100%;margin-left:10px;">方式一: 录入月成本,自动计算时薪<span class="tip">(适合企业全职员工)</span>
+        <el-radio v-model="timeType.hourCostInputType" :label="0" style="width:100%;margin-left:10px;">{{ $t('methodsa') }}<span class="tip">{{ $t('suitableforfulltimeemployees') }}</span>
             <el-form ref="form0" :inline="true" :model="timeType" label-width="150px" style="margin-top:10px;">
-            <el-form-item label="平均每月工作天数" prop="monthDays">
+            <el-form-item :label="$t('workingdayspermonth')" prop="monthDays">
             <el-input v-model="timeType.monthDays"  type="number" style="width:120px;"></el-input>
-            
+            {{ $t('time.day') }} 
             </el-form-item>    
-            <el-form-item label="每日正常工作时长" prop="allday">
-                <el-select v-model="timeType.allday" placeholder="请选择工作时长" style="width:120px;" @change="timeAlldayChange">
+            <el-form-item :label="$t('dailyworkinghours')" prop="allday">
+                <el-select v-model="timeType.allday" :placeholder="$t('defaultText.pleaseSelectWorkingHours')" style="width:120px;" @change="timeAlldayChange">
                     <el-option v-for="item in times" :key="item" :label="item.toFixed(1)" :value="item"></el-option>
                 </el-select>
-                小时
-                
-                <span class="lockworktime"><el-checkbox v-model="timeType.lockWorktime" @change="lockChange" label="锁定工作时长" />
-                
-                <el-tooltip effect="dark" content="锁定每日填报工时的上限" placement="top-start">
+                {{ $t('time.hour') }} 
+                <span class="lockworktime"><el-checkbox v-model="timeType.lockWorktime" @change="lockChange" :label="$t('lockingworkinghours')" />
+                <el-tooltip effect="dark" :content="$t('hoursreporteperday')" placement="top-start">
                     <i class="el-icon-question" style="color:#606266"></i>
                 </el-tooltip>
-                <span style="margin-left:25px">填报时长上限</span>
+                <span style="margin-left:25px">{{ $t('imitillingtime') }}</span>
                 <el-select :disabled="timeType.lockWorktime" v-model="timeType.maxReportTime" type="number" style="width:120px;margin-left:10px">
                     <el-option v-for="item in maxReportTimeRange" :key="item" :label="item.toFixed(1)" :value="item"></el-option>
-                </el-select><span style="margin-left:5px;color:#409eff">小时</span>
+                </el-select><span style="margin-left:5px;color:#409eff">{{ $t('time.hour') }}</span>
                 </span>
                 
             </el-form-item><br>
-            <el-form-item label="加班设置" prop="allday" v-if="!timeType.lockWorktime">
-                <el-checkbox v-model="timeType.fillOvertime" label="可填报加班时长" />
+            <el-form-item :label="$t('workSettings')" prop="allday" v-if="!timeType.lockWorktime">
+                <el-checkbox v-model="timeType.fillOvertime" :label="$t('hourscanbereported')" />
                 <template v-if="timeType.fillOvertime">
-                <el-checkbox v-model="timeType.payOvertime" label="加班工时记入成本" />
+                <el-checkbox v-model="timeType.payOvertime" :label="$t('chargedtocost')" />
                 <!-- <el-checkbox v-model="timeType.doubleOvertime" label="加班双倍成本" :disabled="!timeType.payOvertime"/> -->
-                <el-input v-model="timeType.overtimeRatio" placeholder="" clearable style="width: 100px;margin: 0 10px 0 20px" v-if="timeType.payOvertime" @keyup.native="timeType.overtimeRatio = oninput(timeType.overtimeRatio, 1)"></el-input> <span v-if="timeType.payOvertime">倍工资</span>
+                <el-input v-model="timeType.overtimeRatio" placeholder="" clearable style="width: 100px;margin: 0 10px 0 20px" v-if="timeType.payOvertime" @keyup.native="timeType.overtimeRatio = oninput(timeType.overtimeRatio, 1)"></el-input> <span v-if="timeType.payOvertime">{{ $t('bei-gong-zi') }}</span>
                 </template>
             </el-form-item>
             </el-form>
             
         </el-radio>
-        <el-radio v-model="timeType.hourCostInputType" :label="1" style="width:100%;margin-left:10px;">方式二:直接录入时薪<span class="tip">(适合计时发放酬劳的小时工,兼职员工)</span></el-radio>
+        <el-radio v-model="timeType.hourCostInputType" :label="1" style="width:100%;margin-left:10px;">{{ $t('visittwo') }}<span class="tip">{{ $t('timeemployees') }}</span></el-radio>
         </div>
         <!--设置时长样式内容-->
-        <p style="margin-left:10px;color:#666;">员工工作时长上报方式设置</p>
+        <p style="margin-left:10px;color:#666;">{{ $t('employeeworkinghours') }}</p>
         <el-row :gutter="20" style="padding-top:10px;width:100%;margin:0 auto;padding-left:10px;padding-right:10px;">
         <el-col :span="6" >
         <!-- 上下午固定时长-->
         <div class="panel" >
-        <el-radio v-model="timeType.type" :label="0" style="width:100%">全天/上午/下午便捷上报
+        <el-radio v-model="timeType.type" :label="0" style="width:100%">{{ $t('reportintheafternoon') }}
         <el-form  ref="form1" :model="timeType" :rules="rules" label-width="5rem" style="color:#333;">
         <el-form-item>
         </el-form-item>  
-        <span style="color:#999;display:block;line-height:2rem;margin:1rem 0;">请设置时长</span>
-        <el-form-item label="全天时长" prop="allday">
-            <el-select v-model="timeType.allday" placeholder="请选择工作时长" style="width:120px;" @change="timeChange">
+        <span style="color:#999;display:block;line-height:2rem;margin:1rem 0;">{{ $t('settheduration') }}</span>
+        <el-form-item :label="$t('daylong')" prop="allday">
+            <el-select v-model="timeType.allday" placeholder="$t('defaultText.pleaseChoose')" style="width:120px;" @change="timeChange">
                 <el-option v-for="item in times" :key="item" :label="item.toFixed(1)" :value="item"></el-option>
             </el-select>
-            小时
-        </el-form-item>
-        <el-form-item label="上午时长" prop="am" >
-            <el-select v-model="timeType.am" placeholder="请选择工作时长" style="width:120px;" @change="timeChange">
+            {{ $t('time.hour') }} 
+            </el-form-item>
+        <el-form-item :label="$t('morningtime')" prop="am" >
+            <el-select v-model="timeType.am" placeholder="$t('defaultText.pleaseChoose')" style="width:120px;" @change="timeChange">
                 <el-option v-for="item in halfTime" :key="item" :label="item.toFixed(1)" :value="item"></el-option>
             </el-select>
-            小时
+            {{ $t('time.hour') }} 
         </el-form-item>
-        <el-form-item label="下午时长" prop="pm" >
-            <el-select v-model="timeType.pm" disabled placeholder="请选择工作时长" style="width:120px;" >
+        <el-form-item :label="$t('afternoontime')" prop="pm" >
+            <el-select v-model="timeType.pm" disabled placeholder="$t('defaultText.pleaseChoose')" style="width:120px;" >
                 <el-option v-for="item in halfTime" :key="item" :label="item.toFixed(1)" :value="item"></el-option>
             </el-select>
-            小时
+            {{ $t('time.hour') }} 
         </el-form-item>
         </el-form>
         </el-radio>
@@ -84,16 +82,16 @@
         <!-- 选择小时数样式 -->
         <el-col :span="6">   
         <div class="panel">
-        <el-radio v-model="timeType.type" :label="1">自行选择工作时长
+        <el-radio v-model="timeType.type" :label="1">{{ $t('chooseyourownhours') }}
         <el-form  class="sample" style="color:#333;">
         <p style="color:#999;display:block;line-height:2rem">
-            展示样例
+            {{ $t('showthesample') }} 
         </p>
-        <el-form-item label="工作时长">
+        <el-form-item :label="$t('screening.workTime')">
             <el-select v-model="selectTime" style="width:120px">
                 <el-option v-for="item in timeRange" :key="item" :value="item.toFixed(1)">{{item.toFixed(1)}}</el-option>
             </el-select>
-            小时
+            {{ $t('time.hour') }} 
         </el-form-item>
         
         </el-form>
@@ -104,13 +102,13 @@
         <!--选择时间段样式 -->
         <el-col :span="6">  
         <div  class="panel" >
-            <el-radio v-model="timeType.type" :label="2">自行选择时间范围
+            <el-radio v-model="timeType.type" :label="2">{{ $t('owntimeframe') }}
             <el-form class="sample" style="color:#333;">
             <p style="color:#999;display:block;line-height:2rem">
-            展示样例
+            {{ $t('showthesample') }} 
             </p>
             
-            <el-form-item label="开始时间">
+            <el-form-item :label="$t('starttimes')">
                <el-time-picker
                style="width:160px;"
                     v-model="startTime"
@@ -119,10 +117,10 @@
                         end: '18:30'
                     }"
                     format="HH:mm"
-                    placeholder="任意时间点">
+                    :placeholder="$t('pointintime')">
                 </el-time-picker>
             </el-form-item>
-            <el-form-item label="结束时间">
+            <el-form-item :label="$t('time.endTime')">
                <el-time-picker
                style="width:160px;"
                             v-model="endTime"
@@ -132,13 +130,13 @@
                                 minTime: startTime
                             }"
                             format="HH:mm"
-                            placeholder="任意时间点">
+                            :placeholder="$t('pointintime')">
                         </el-time-picker>
             </el-form-item>
             </el-form>
             </el-radio> 
             <div v-if="timeType.type == 2">
-                <el-link :underline="false" type="primary" @click="setupRest">设置休息时间段</el-link>
+                <el-link :underline="false" type="primary" @click="setupRest">{{ $t('settingrestPeriod') }}</el-link>
                 <div style="padding: 10px 2px;">
                 <el-tag style="margin: 0 8px 8px 0;" size="small" type="info" v-for="item in restList" :key="item.id">{{item.startTime + '-' + item.endTime}}</el-tag>
                 </div>
@@ -149,16 +147,16 @@
         <!--选择按比例分配样式 -->
         <el-col :span="6">  
         <div  class="panel" >
-            <el-radio v-model="timeType.type" :label="3">按比例分配时间
+            <el-radio v-model="timeType.type" :label="3">{{ $t('timeproportionally') }}
             <el-form class="sample" style="color:#333;">
             <p style="color:#999;display:block;line-height:2rem">
-            展示样例
+            {{ $t('showthesample') }} 
             </p>
             
-            <el-form-item label="用时占比">
+            <el-form-item :label="$t('lable.percentageOfTime')">
                 <!-- <el-col span="6">用时占比: </el-col> -->
                 <el-col span="12" style="padding-left:0;padding-right:0;"><el-slider v-model="progress" :step="5" style="width:100px;" ></el-slider></el-col>
-                <el-col span="2" style="padding-left:0;padding-right:0;"><span style="margin-left:10px;"><span style="margin-right:10px;">{{progress}}%</span>{{(progress*8/100).toFixed(1)}}小时</span></el-col>
+                <el-col span="2" style="padding-left:0;padding-right:0;"><span style="margin-left:10px;"><span style="margin-right:10px;">{{progress}}%</span>{{(progress*8/100).toFixed(1)}} {{ $t('time.hour') }}</span></el-col>
             </el-form-item>
             </el-form>
             </el-radio> 
@@ -166,15 +164,15 @@
         </el-col>
         </el-row>
         <!--设置时长样式内容-->
-        <p style="margin-left:10px;color:#666;">填报提醒设置</p>
+        <p style="margin-left:10px;color:#666;">{{ $t('reminderSettings') }}</p>
         <el-row :gutter="20" style="padding-top:10px;width:100%;margin:0 auto;padding-left:10px;padding-right:10px;">
             <el-col :span="24" >
                 <div class="panel" style="height:200px;">
                     <el-form :inline="true" :model="timeType"  style="margin-top:10px;">
-                    <el-form-item label="提醒时间 " prop="alertTime">
+                    <el-form-item :label="$t('remindertime') " prop="alertTime">
                         <el-time-picker 
                                 v-model="timeType.alertTime"
-                                placeholder="提醒时间"
+                                :placeholder="$t('remindertime')"
                                 style="width:120px;"
                                 format="HH:mm"
                                 value-format="HH:mm"
@@ -185,19 +183,19 @@
                             </el-time-picker>
                     </el-form-item>
                     <el-form-item prop="alertType" style="margin-left:10px">
-                        <el-select v-model="timeType.alertType" placeholder="请选择提醒方式">
-                            <el-option label="每日提醒当天漏填" :value="0"></el-option>
-                            <el-option label="每日提醒昨天漏填" :value="1"></el-option>
+                        <el-select v-model="timeType.alertType" :placeholder="$t('remindermethod')">
+                            <el-option :label="$t('missingfill')" :value="0"></el-option>
+                            <el-option :label="$t('missingfills')" :value="1"></el-option>
                         </el-select>
                     </el-form-item>
-                    <el-form-item label="提醒文本" prop="alertMsg" style="width: 50%;margin-left:10px;">
-                            <el-input placeholder="请输入提醒文本" v-model="timeType.alertMsg" clearable class="apu" maxlength="20"></el-input>
+                    <el-form-item :label="$t('remindertext')" prop="alertMsg" style="width: 50%;margin-left:10px;">
+                            <el-input :placeholder="$t('peaseenterthe')" v-model="timeType.alertMsg" clearable class="apu" maxlength="20"></el-input>
                     </el-form-item>
                     </el-form>
                     <div class="underpanel">
                         <div class="whiteList_head">
-                            <span style="float:left;color:#999">不提醒人员设置</span>
-                            <el-link type="primary" style="float:left;margin-left:15px" :underline="false" @click="addWhite">添加</el-link>
+                            <span style="float:left;color:#999">{{ $t('personneltoset') }}</span>
+                            <el-link type="primary" style="float:left;margin-left:15px" :underline="false" @click="addWhite">{{ $t('addTian') }}</el-link>
                         </div>
                         <div class="whiteList_content">
                             <el-tag style="margin:10px 0 0 10px" v-for="item in whiteList" :key="item.id" closable @close="whiteDelete(item)">{{item.label}}</el-tag>
@@ -207,29 +205,29 @@
             </el-col>
         </el-row>
 <!-- 设置员工可补填的时间 -->
-        <p style="margin-left:10px;color:#666;">员工填报日报时间设置</p>
+        <p style="margin-left:10px;color:#666;">{{ $t('timesetting') }}</p>
         <el-row :gutter="20" style="padding-top:10px;width:100%;margin:0 auto;padding-left:10px;padding-right:10px;">
         <el-col :span="24" >
             <div class="panel" style="height:120px;">
                 <el-form :inline="true" :model="timeType"  style="margin-top:10px;">
                  
-                <el-form-item label="补填时间" prop="fillMonths">
+                <el-form-item :label="$t('filltime')" prop="fillMonths">
                     <el-select v-model="timeType.fillMonths" >
                         <el-option v-for="item in monthTimeList" :key="item.id" :label="item.name" :value="item.id">
                         </el-option>
                     </el-select>
-                    <span style="color:#666;margin-left:10px;">(说明:系统管理员为员工代填日报时不受补填时间的限制)</span>
-                    <span class="lockworktime"><el-checkbox v-model="timeType.fillAhead" label="可提前填报" /></span>
+                    <span style="color:#666;margin-left:10px;">{{ $t('instructions') }}</span>
+                    <span class="lockworktime"><el-checkbox v-model="timeType.fillAhead" :label="$t('filledinadvance')" /></span>
                 </el-form-item><br>
-                <el-form-item label="员工填报及时日" prop="timeliness" v-if="user.company.packageProject">
+                <el-form-item :label="$t('timelydate')" prop="timeliness" v-if="user.company.packageProject">
                     <el-select v-model="timeType.timeliness">
-                        <el-option label="当天" :value="0"></el-option>
-                        <el-option label="第二天" :value="1"></el-option>
-                        <el-option label="第三天" :value="2"></el-option>
+                        <el-option :label="$t('dang-tian')" :value="0"></el-option>
+                        <el-option :label="$t('oneday')" :value="1"></el-option>
+                        <el-option :label="$t('shreeday')" :value="2"></el-option>
                     </el-select>
                 </el-form-item>
-                <el-form-item label="日报自动审核时限:" style="color:#606266" v-if="user.timeType.reportAutoApprove">
-                    待审核<el-input-number v-model="timeType.reportAutoApproveDays" style="width:150px;margin:0 10px" min="1"></el-input-number>天后
+                <el-form-item :label="$t('dailyreview')" style="color:#606266" v-if="user.timeType.reportAutoApprove">
+                    {{ $t('state.WaitingAudit') }}<el-input-number v-model="timeType.reportAutoApproveDays" style="width:150px;margin:0 10px" min="1"></el-input-number>{{ $t('dyas') }}
                 </el-form-item>
                 </el-form>
             </div>
@@ -237,23 +235,23 @@
         </el-row>
         <!-- 设置研究中心 -->
         <div class="yanjiu">
-            <p style="margin-left:10px;color:#666;">自定义日报填报列表</p>
+            <p style="margin-left:10px;color:#666;">{{ $t('dailyfilling') }}</p>
             <el-switch style="margin-left: 40px" v-model="timeType.customDegreeActive" active-color="#13ce66" inactive-color="#ff4949"> </el-switch>
-            <span style="margin-left:10px;color:#999;">开启后系统可按该字段数据进行分类统计工时成本</span>
+            <span style="margin-left:10px;color:#999;">{{ $t('afteritisenabled') }}</span>
             <template v-if="timeType.customDegreeActive">
             <el-switch style="margin-left: 40px" v-model="timeType.customDegreeStatus" active-color="#13ce66" inactive-color="#ff4949"> </el-switch>
-            <span style="margin-left:10px;color:#999;">是否为必填项</span>
+            <span style="margin-left:10px;color:#999;">{{ $t('parametermandatory') }}</span>
             </template>
         </div>
         <el-row v-if="timeType.customDegreeActive" :gutter="20" style="padding-top:10px;width:100%;margin:0 auto;padding-left:10px;padding-right:10px;">
             <el-col :span="24" >
                 <div class="panel" style="height:60px;">
                     <el-form :inline="true" :model="timeType"  style="margin-top:10px;">
-                        <el-form-item label="字段名称 ">
-                            <el-input placeholder="请输入字段名称" maxlength="6" size="small" v-model="timeType.customDegreeName" clearable> </el-input>
+                        <el-form-item :label="$t('fieldnames') ">
+                            <el-input :placeholder="$t('peaseenterthe')" maxlength="6" size="small" v-model="timeType.customDegreeName" clearable> </el-input>
                         </el-form-item>
                         <el-form-item>
-                            <el-button type="primary" size="small" @click="bianji()">数据维护</el-button>
+                            <el-button type="primary" size="small" @click="bianji()">{{ $t('datamaintenance') }}</el-button>
                         </el-form-item>
                     </el-form>
                 </div>
@@ -261,25 +259,25 @@
         </el-row>
         <!-- 设置数值填报 -->
         <div class="yanjiu" v-if="user.company.packageProject==1">
-            <p style="margin-left:10px;color:#666;"><span>自定义日报填报数值</span></p>
+            <p style="margin-left:10px;color:#666;"><span>{{ $t('dailyfillingvalue') }}</span></p>
             <el-switch style="margin-left: 40px" v-model="timeType.customDataActive" active-color="#13ce66" inactive-color="#ff4949"> </el-switch>
-            <span style="margin-left:10px;color:#999;">开启后可按项目,部门和人员统计该数值</span>
+            <span style="margin-left:10px;color:#999;">{{ $t('afterthisunctionisenabled') }}</span>
             <template v-if="timeType.customDataActive">
             <el-switch style="margin-left: 40px" v-model="timeType.customDataStatus" active-color="#13ce66" inactive-color="#ff4949"> </el-switch>
-            <span style="margin-left:10px;color:#999;">是否为必填项</span>
+            <span style="margin-left:10px;color:#999;">{{ $t('parametermandatory') }}</span>
             </template>
         </div>
         <el-row v-if="timeType.customDataActive && user.company.packageProject==1" :gutter="20" style="padding-top:10px;width:100%;margin:0 auto;padding-left:10px;padding-right:10px;">
             <el-col :span="24" >
                 <div class="panel" style="height:60px;">
                     <el-form :inline="true" :model="timeType" style="margin-top:10px;">
-                        <el-form-item label="字段名称 ">
-                            <el-input placeholder="请输入字段名称" maxlength="5" size="small" v-model="timeType.customDataName" clearable> </el-input>
+                        <el-form-item :label="$t('fieldnames') ">
+                            <el-input :placeholder="$t('peaseenterthe')" maxlength="5" size="small" v-model="timeType.customDataName" clearable> </el-input>
                         </el-form-item>
-                        <el-form-item label="是否开启最大值限制 " style="margin-left:10px;">
+                        <el-form-item :label="$t('maximumvaluelimit') " style="margin-left:10px;">
                             <el-switch v-model="timeType.customDataMaxStatus" active-color="#13ce66" inactive-color="#ff4949"> </el-switch>
                         </el-form-item>
-                        <el-form-item label="最大值 " style="margin-left:10px;" v-if="timeType.customDataMaxStatus">
+                        <el-form-item :label="$t('maximum') " style="margin-left:10px;" v-if="timeType.customDataMaxStatus">
                             <el-input-number v-model="timeType.customDataMaxValue"></el-input-number>
                         </el-form-item>
                     </el-form>
@@ -289,35 +287,35 @@
 
         <!-- 设置数值填报 -->
         <div class="yanjiu" >
-            <p style="margin-left:10px;color:#666;"><span>自定义日报填报文本</span></p>
+            <p style="margin-left:10px;color:#666;"><span>{{ $t('fillingtext') }}</span></p>
             <el-switch style="margin-left: 40px" v-model="timeType.customTextActive" active-color="#13ce66" inactive-color="#ff4949"> </el-switch>
-            <span style="margin-left:10px;color:#999;">开启后可员工可额外填写该信息</span>
+            <span style="margin-left:10px;color:#999;">{{ $t('additionalinformation') }}</span>
             <template v-if="timeType.customTextActive">
             <el-switch style="margin-left: 40px" v-model="timeType.customTextStatus" active-color="#13ce66" inactive-color="#ff4949"> </el-switch>
-            <span style="margin-left:10px;color:#999;">是否为必填项</span>
+            <span style="margin-left:10px;color:#999;">{{ $t('parametermandatory') }}</span>
             </template>
         </div>
         <el-row v-if="timeType.customTextActive" :gutter="20" style="padding-top:10px;width:100%;margin:0 auto;padding-left:10px;padding-right:10px;">
             <el-col :span="24" >
                 <div class="panel" style="height:60px;">
                     <el-form :inline="true" :model="timeType"  style="margin-top:10px;">
-                        <el-form-item label="字段名称 ">
-                            <el-input placeholder="请输入字段名称" maxlength="5" size="small" v-model="timeType.customTextName" clearable> </el-input>
+                        <el-form-item :label="$t('fieldnames') ">
+                            <el-input :placeholder="$t('peaseenterthe')" maxlength="5" size="small" v-model="timeType.customTextName" clearable> </el-input>
                         </el-form-item>
                     </el-form>
                 </div>
             </el-col>
         </el-row>
         <div class="yanjiu">
-            <span style="margin-left:10px;color:#666;">{{user.companyId==781?'具体内容与结果':'工作事项'}}</span>
+            <span style="margin-left:10px;color:#666;">{{user.companyId==781?$t('other.specificcontentandresults'):$t('other.workMatters')}}</span>
             <el-switch :style="user.companyId==781?'margin-left:66px;':'margin-left:108px;'" v-model="timeType.workContentState" active-color="#13ce66" inactive-color="#ff4949"> </el-switch>
-            <span style="margin-left:10px;color:#999;">是否为必填项</span>
+            <span style="margin-left:10px;color:#999;">{{ $t('parametermandatory') }}</span>
         </div>
         <!-- 是否开启导入审核 -->
         <div class="yanjiu">
-            <p style="margin-left:10px;color:#666;">是否开启导入审核</p>
+            <p style="margin-left:10px;color:#666;">{{ $t('importauditing') }}</p>
             <el-switch style="margin-left: 55px" v-model="timeType.needDeptAudit" active-color="#13ce66" inactive-color="#ff4949"> </el-switch>
-            <span v-if="timeType.needDeptAudit == 1" style="margin-left:10px;color:#999;">审核人为各部门直属领导</span>
+            <span v-if="timeType.needDeptAudit == 1" style="margin-left:10px;color:#999;">{{ $t('eachdepartment') }}</span>
         </div>
 
         <!-- 是否开启主项目管理 -->
@@ -328,90 +326,89 @@
         </div> -->
 
         <div style="width:80px;margin:0 auto;padding:20px;">
-            <el-button  type="primary" @click="submitInsert" :loading="addLoading">保存</el-button>
+            <el-button  type="primary" @click="submitInsert" :loading="addLoading">{{ $t('save') }}</el-button>
         </div>
         <!-- 维护数据 -->
-        <el-dialog title="维护数据列表" show-header="false" v-if="subProjectVisible" :visible.sync="subProjectVisible" :close-on-click-modal="false" customClass="customWidth" width="500px">
+        <el-dialog :title="$t('maintenanceDatalist')" show-header="false" v-if="subProjectVisible" :visible.sync="subProjectVisible" :close-on-click-modal="false" customClass="customWidth" width="500px">
             <el-table :data="subProjectList" highlight-current-row  height="400" style="width: 100%;">
-            <el-table-column prop="id" width="60" label="序号">
+            <el-table-column prop="id" width="60" :label="$t('headerTop.serialNumber')">
                 <template slot-scope="scope" >
                     {{scope.$index + 1}}
                 </template>
             </el-table-column>
-            <el-table-column prop="name" label="名称" ></el-table-column>
-            <el-table-column label="操作" width="150">
+            <el-table-column prop="name" :label="$t('names')" ></el-table-column>
+            <el-table-column :label="$t('operation')" width="150">
                 <template slot-scope="scope" >
-                    <el-button size="small" type="primary" @click="addNewSubProject(scope.row)">编辑</el-button>
-                    <el-button size="small" type="danger" @click="deleteSubPro(scope.row)">删除</el-button>
+                    <el-button size="small" type="primary" @click="addNewSubProject(scope.row)">{{ $t('bian-ji') }}</el-button>
+                    <el-button size="small" type="danger" @click="deleteSubPro(scope.row)">{{ $t('btn.delete') }}</el-button>
                 </template>
             </el-table-column>
 
             </el-table>
             <div slot="footer" class="dialog-footer">
-                <el-button type="primary" @click="subProjectVisible = false" >关闭</el-button>
-                <el-button type="primary" @click="addNewSubProject()" >新增数据</el-button>
+                <el-button type="primary" @click="subProjectVisible = false" >{{ $t('Shutdown') }}</el-button>
+                <el-button type="primary" @click="addNewSubProject()" >{{ $t('addData') }}</el-button>
             </div>
         </el-dialog>
         <!-- 新增子项目弹出框 -->
-        <el-dialog title="新增/修改维护数据" v-if="addSubProject" :visible.sync="addSubProject" :close-on-click-modal="false" customClass="customWidth" width="500px">
+        <el-dialog :title="$t('addedormodifiedthemaintenancedata')" v-if="addSubProject" :visible.sync="addSubProject" :close-on-click-modal="false" customClass="customWidth" width="500px">
             <el-form ref="form2" :model="addfm" :rules="ruless" label-width="100px">
-                <el-form-item label="名称" prop="name">
-                    <el-input v-model="addfm.name" placeholder="请输入名称" clearable></el-input>
+                <el-form-item :label="$t('names')" prop="name">
+                    <el-input v-model="addfm.name" :placeholder="$t('peaseenterthe')" clearable></el-input>
                 </el-form-item>
             </el-form>
             <div slot="footer" class="dialog-footer">
-                <el-button @click.native="addSubProject = false">取消</el-button>
-                <el-button type="primary" @click="submitInsertSubProject" :loading="addLoading">提交</el-button>
+                <el-button @click.native="addSubProject = false">{{ $t('btn.cancel') }}</el-button>
+                <el-button type="primary" @click="submitInsertSubProject" :loading="addLoading">{{ $t('btn.submit') }}</el-button>
             </div>
         </el-dialog>
 
         <!-- 设置休息时间段 -->
-        <el-dialog title="设置休息时间段" v-if="setupRestDialog" :visible.sync="setupRestDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
+        <el-dialog :title="$t('settingrestPeriod')" v-if="setupRestDialog" :visible.sync="setupRestDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
             <el-table :data="restList" highlight-current-row height="400" style="width: 100%;">
-                <el-table-column prop="id" width="60" label="序号">
+                <el-table-column prop="id" width="60" :label="$t('headerTop.serialNumber')">
                     <template slot-scope="scope" >
                         {{scope.$index + 1}}
                     </template>
                 </el-table-column>
-                <el-table-column label="时间段">
+                <el-table-column :label="$t('message.period')">
                     <template slot-scope="scope">
                         <span>{{scope.row.startTime + '-' + scope.row.endTime}}</span>
                     </template>
                 </el-table-column>
-                <el-table-column label="操作" width="150">
+                <el-table-column :label="$t('operation')" width="150">
                     <template slot-scope="scope" >
-                        <el-button size="small" type="primary" @click="setupRestEdit(scope.row)">编辑</el-button>
-                        <el-button size="small" type="danger" @click="setupRestDelete(scope.row)">删除</el-button>
+                        <el-button size="small" type="primary" @click="setupRestEdit(scope.row)">{{ $t('bian-ji') }}</el-button>
+                        <el-button size="small" type="danger" @click="setupRestDelete(scope.row)">{{ $t('btn.delete') }}</el-button>
                     </template>
                 </el-table-column>
             </el-table>
             <div slot="footer" class="dialog-footer">
-                <el-button @click.native="setupRestDialog = false">关闭</el-button>
-                <el-button type="primary" @click="setupRestNew">新增时间段</el-button>
+                <el-button @click.native="setupRestDialog = false">{{ $t('Shutdown') }}</el-button>
+                <el-button type="primary" @click="setupRestNew">{{ $t('xin-zeng-shi-jian-duan') }}</el-button>
             </div>
-
-            <el-dialog :title="setupItemId == null ? '新增' : '修改'" v-if="setupRestAppendDialog" :visible.sync="setupRestAppendDialog" :close-on-click-modal="false" customClass="customWidth" width="400px" append-to-body>
+            <el-dialog :title="setupItemId == null ? $t('add') : $t('xiu-gai')" v-if="setupRestAppendDialog" :visible.sync="setupRestAppendDialog" :close-on-click-modal="false" customClass="customWidth" width="400px" append-to-body>
                 <el-form label-width="100px">
-                    <el-form-item label="开始时间">
-                        <el-time-picker v-model="restTime.startTime" placeholder="请选择时间" format="HH:mm" value-format="HH:mm" @change="timeRule(0)"></el-time-picker>
+                    <el-form-item :label="$t('starttimes')">
+                        <el-time-picker v-model="restTime.startTime" :placeholder="$t('message.Pleaseselectatime')" format="HH:mm" value-format="HH:mm" @change="timeRule(0)"></el-time-picker>
                     </el-form-item>
-                    <el-form-item label="结束时间">
-                        <el-time-picker v-model="restTime.endTime" placeholder="请选择时间" format="HH:mm" value-format="HH:mm" @change="timeRule(1)"></el-time-picker>
+                    <el-form-item :label="$t('time.endTime')">
+                        <el-time-picker v-model="restTime.endTime" :placeholder="$t('message.Pleaseselectatime')" format="HH:mm" value-format="HH:mm" @change="timeRule(1)"></el-time-picker>
                     </el-form-item>
                 </el-form>
                 <div slot="footer" class="dialog-footer">
-                    <el-button @click.native="setupRestAppendDialog = false">取消</el-button>
-                    <el-button type="primary" @click="setupRestSure()">确认</el-button>
+                    <el-button @click.native="setupRestAppendDialog = false">{{ $t('btn.cancel') }}</el-button>
+                    <el-button type="primary" @click="setupRestSure()">{{ $t('btn.determine') }}</el-button>
                 </div>
             </el-dialog>
         </el-dialog>
 
         <!-- 日报提醒白名单 -->
-        <el-dialog title="选择人员"  v-if="whiteListDialog" :visible.sync="whiteListDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
+        <el-dialog :title="$t('screening.selectPeople')"  v-if="whiteListDialog" :visible.sync="whiteListDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
             <div class="tree" style="height:400px">
                 <el-scrollbar style="height:100%">
                     <el-input
-                    placeholder="输入关键字进行过滤"
+                    :placeholder="$t('keywordfiltering')"
                     v-model="filterText">
                     </el-input>
                 <el-tree :data="whiteListAll" show-checkbox :props="defaultProps" node-key="id"
@@ -421,8 +418,8 @@
             </div>
             <!-- <div>已选中&nbsp;{{chosenMembCount}}&nbsp;人</div>         :default-checked-keys="alreadyPartArray"  @check-change="onTreeItemChange" -->
             <div slot="footer" class="dialog-footer">
-                <el-button  @click="whiteListDialog = false">取消</el-button>
-                <el-button type="primary" @click="setWhiteList()">确定</el-button>
+                <el-button  @click="whiteListDialog = false">{{ $t('btn.cancel') }}</el-button>
+                <el-button type="primary" @click="setWhiteList()">{{ $t('btn.determine') }}</el-button>
             </div>
         </el-dialog>
     </section>
@@ -433,7 +430,7 @@
     export default {
         data() {
             return {
-                monthTimeList:[{id:0, name:'不限制'},{id:1, name:'仅可补填当月'},{id:2, name:'可补填到上个月'},{id:3, name:'可补填到上上月'},{id:4, name:'可补填7天内日报'},{id:5, name:'可补填前1天日报'}],
+                monthTimeList:[{id:0, name:this.$t('donlimit')},{id:1, name:this.$t('canbefilled')},{id:2, name:this.$t('lastmonth')},{id:3, name:this.$t('lastlastmonth')},{id:4, name:this.$t('newspaperwithin')},{id:5, name:this.$t('previousdaydaily')}],
                 progress:30,
                 startTime:null,
                 endTime:null,
@@ -458,12 +455,12 @@
                 needDeptAudit: false,
                 customDegreeName: '',
                 rules: {
-                    allday: [{ required: true, message: "请选择全天工作时长", trigger: "blur" }],
-                    am: [{ required: true, message: "请输入上午工作时长", trigger: "blur" }],
-                    pm: [{ required: true, message: "请输入下午工作时长", trigger: "blur" }],
+                    allday: [{ required: true, message: this.$t('dayworkinghours'), trigger: "blur" }],
+                    am: [{ required: true, message: this.$t('morningworkinghours'), trigger: "blur" }],
+                    pm: [{ required: true, message: this.$t('afternoonworkinghours'), trigger: "blur" }],
                 },
                 ruless: {
-                    name: [{ required: true, message: "请输入名称", trigger: "blur" }],
+                    name: [{ required: true, message: this.$t('peaseenterthe'), trigger: "blur" }],
                 },
                 subProjectVisible: false,
                 subProjectList: [],//子项目列表
@@ -498,7 +495,24 @@
                 this.$refs.whiteListTree.filter(val);
             }
         },
-        methods: {
+        created() {
+            let height = window.innerHeight;
+            this.tableHeight = height - 195;
+            const that = this;
+            window.onresize = function temp() {
+                that.tableHeight = window.innerHeight - 195;
+            };
+        },
+        mounted() {
+            this.timeRange = []
+            for(let i=0.5; i<=20; i+=0.5){
+                this.timeRange.push(i)
+            }
+            this.initTime();
+            this.getCompanyTimeSetting();
+            this.getRestList()
+        },
+         methods: {
             timeAlldayChange(){
                 if(this.timeType.maxReportTime < this.timeType.allday || this.timeType.lockWorktime){
                     this.timeType.maxReportTime = this.timeType.allday
@@ -572,7 +586,7 @@
                 },res => {
                     if(res.code == 'ok'){
                         this.$message({
-                            message: '删除成功',
+                            message: this.$t('message.successfullyDeleted'),
                             type: 'success'
                         })
                         this.getRestList()
@@ -594,7 +608,7 @@
                         this.restTime.id = this.setupItemId
                     }
                     if(this.restTime.startTime == null || this.restTime.endTime == null){
-                        this.$message('请选择时间段')
+                        this.$message(this.$t('qing-xuan-ze-shi-jian-duan'))
                         return
                     }
                     this.http.post('/time-auto-exclude/addOrMod',this.restTime,
@@ -651,7 +665,7 @@
                             this.listLoading = false;
                             if (res.code == "ok") {
                                 this.$message({
-                                    message: '成功',
+                                    message: this.$t('other.successful'),
                                     type: "success"
                                 });
                                 this.addfm = {name: ''}
@@ -690,9 +704,9 @@
                 this.addSubProject = true;
             },
             deleteSubPro(subProject) {
-                this.$confirm("确定要这条" + subProject.name + "数据吗?","删除", {
-                    confirmButtonText: "确定",
-                    cancelButtonText: "取消",
+                this.$confirm(this.$t('takethisone') + subProject.name + this.$t('shu-ju-ma'),this.$t('btn.delete'), {
+                    confirmButtonText: this.$t('btn.determine'),
+                    cancelButtonText: this.$t('btn.cancel'),
                     type: "warning"
                 })
                 .then(() => {
@@ -704,14 +718,14 @@
                         this.listLoading = false;
                         if (res.code == "ok") {
                             this.$message({
-                                message: "删除成功",
+                                message: this.$t('message.successfullyDeleted'),
                                 type: "success"
                             });
                             this.bianji();
                         } else {
-                            if(res.msg.indexOf("无法删除1") == '-1') {
+                            if(res.msg.indexOf(this.$t('wu-fa-shan-chu-1')) == '-1') {
                                 this.$message({
-                                    message: '该数据正在使用,无法删除',
+                                    message: this.$t('cannotbedeleted'),
                                     type: "error"
                                 });
                             } else {
@@ -840,7 +854,7 @@
                 },res => {
                     if(res.code == 'ok'){
                         this.$message({
-                            message: '删除成功',
+                            message: this.$t('message.successfullyDeleted'),
                             type: 'success'
                         })
                     }else {
@@ -879,7 +893,7 @@
                 },res => {
                     if(res.code == 'ok'){
                         this.$message({
-                            message: '添加成功',
+                            message: this.$t('addsuccessful'),
                             type: 'success'
                         })
                         this.whiteListDialog = false
@@ -908,7 +922,7 @@
                         if(param.customDegreeActive) {
                             if(param.customDegreeName.replace(/^ +| +$/g,'') == ''){
                                 this.$message({
-                                    message:"请输入[自定义日报填报列表]的字段名称",
+                                    message:this.$t('customDailyFillingList'),
                                     type:"error"
                                 })
                                 return
@@ -920,7 +934,7 @@
                         if(param.customDataActive) {
                             if(param.customDataName.replace(/^ +| +$/g,'') == ''){
                                 this.$message({
-                                    message:"请输入[自定义日报填报数值]的字段名称",
+                                    message:this.$t('customDailyFillingLists'),
                                     type:"error"
                                 })
                                 return
@@ -932,7 +946,7 @@
                         if(param.customTextActive) {
                             if(param.customTextName == null || param.customTextName.replace(/^ +| +$/g,'') == ''){
                                 this.$message({
-                                    message:"请输入[自定义日报填报文本]的字段名称",
+                                    message:this.$t('customDailyFillingListss'),
                                     type:"error"
                                 })
                                 return
@@ -956,7 +970,7 @@
                         if(param.payOvertime) {
                             if(param.overtimeRatio == 0 || param.overtimeRatio == '') {
                                 this.$message({
-                                    message:"请设置加班几倍工资",
+                                    message:this.$t('overtimepay'),
                                     type:"error"
                                 })
                                 return
@@ -976,7 +990,7 @@
                                 this.listLoading = false;
                                 if (res.code == "ok") {
                                     this.$message({
-                                        message: '保存成功',
+                                        message: this.$t('savesuccess'),
                                         type: "success"
                                     });
                                     this.user.timeType = param;
@@ -1082,23 +1096,6 @@
             }
 
         },
-        created() {
-            let height = window.innerHeight;
-            this.tableHeight = height - 195;
-            const that = this;
-            window.onresize = function temp() {
-                that.tableHeight = window.innerHeight - 195;
-            };
-        },
-        mounted() {
-            this.timeRange = []
-            for(let i=0.5; i<=20; i+=0.5){
-                this.timeRange.push(i)
-            }
-            this.initTime();
-            this.getCompanyTimeSetting();
-            this.getRestList()
-        }
     };
 </script>