|
@@ -50,8 +50,8 @@
|
|
|
<el-form-item :label="$t('workSettings')" prop="allday" v-if="!timeType.lockWorktime">
|
|
|
<el-checkbox v-model="timeType.fillOvertime" :label="$t('hourscanbereported')" />
|
|
|
<el-form-item v-if="timeType.fillOvertime">
|
|
|
- <el-checkbox v-model="timeType.workOvertimeNeedCheck" label="加班时长校验" />
|
|
|
- <el-tooltip effect="dark" :content="$t('工作日填写加班时长不得超过总工作时长-正常工作时长')" placement="top-start">
|
|
|
+ <el-checkbox v-model="timeType.workOvertimeNeedCheck" :label="$t('jiaBanShiChangXiaoYan')" />
|
|
|
+ <el-tooltip effect="dark" :content="$t('gongZuoRiTianXieJiaBanShiChangBuDeChaoGuoZongGongZuoShiChangZhengChangGongZuoShiChang')" placement="top-start">
|
|
|
<i class="el-icon-question" style="color:#606266"></i>
|
|
|
</el-tooltip>
|
|
|
</el-form-item>
|
|
@@ -219,20 +219,20 @@
|
|
|
<el-option :label="$t('monthAlert')" :value="3"></el-option>
|
|
|
<el-option :label="$t('alertLastWeek')" :value="4"></el-option>
|
|
|
</el-select>
|
|
|
- <span v-if="timeType.alertType == 3" style="color:#606266;">(每月
|
|
|
+ <span v-if="timeType.alertType == 3" style="color:#606266;">({{ $t('meiYue') }}
|
|
|
<el-select v-model="timeType.alertDay" style="width:80px;">
|
|
|
<el-option v-for="item in alertDayRange" :label="item" :value="item" :key="item"></el-option>
|
|
|
</el-select>
|
|
|
- 号)</span>
|
|
|
- <span v-if="timeType.alertType == 4" style="color:#606266;">(每
|
|
|
+ {{ $t('hao') }})</span>
|
|
|
+ <span v-if="timeType.alertType == 4" style="color:#606266;">({{ $t('mei') }}
|
|
|
<el-select v-model="timeType.alertDay" style="width:80px;">
|
|
|
<el-option v-for="item in alertWeekDayRange" :label="item.label" :value="item.value" :key="item.value"></el-option>
|
|
|
</el-select>
|
|
|
- 提醒)</span>
|
|
|
+ {{ $t('tiXing') }})</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="timeType.alertType != 3" :label="$t('remindertext')" prop="alertMsg" style="margin-left:10px;">
|
|
|
<el-input :placeholder="$t('peaseenterthe')" v-model="timeType.alertMsg" clearable class="apu" maxlength="50"></el-input>
|
|
|
- <span v-if="timeType.alertType == 4" style="color:orange;margin-left:10px;">(可用{0}表示漏填日期,例如:{0}将被替换为05/24,05/25。)</span>
|
|
|
+ <span v-if="timeType.alertType == 4" style="color:orange;margin-left:10px;">{{ $t('keYong_0BiaoShiLouTianRiQiLiRu_0JiangBeiTiHuanWei_05240525') }}</span>
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-form>
|
|
@@ -250,7 +250,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div style="width:100%;margin-top: 10px;">
|
|
|
- <span style="color: #606266;margin-right: 5px">审核提醒时间</span>
|
|
|
+ <span style="color: #606266;margin-right: 5px">{{ $t('checkRemindertime') }}</span>
|
|
|
<el-time-picker
|
|
|
v-model="timeType.waitCheckAlertTime"
|
|
|
:placeholder="$t('checkRemindertime')"
|
|
@@ -262,13 +262,13 @@
|
|
|
end: '23:30'
|
|
|
}">
|
|
|
</el-time-picker>
|
|
|
- <span v-if="timeType.alertType == 4" style="color:#606266;margin-left:20px;">(每
|
|
|
+ <span v-if="timeType.alertType == 4" style="color:#606266;margin-left:20px;">({{ $t('mei') }}
|
|
|
<el-select v-model="timeType.alertCheckDay" style="width:80px;">
|
|
|
<el-option v-for="item in alertWeekDayRange" :label="item.label" :value="item.value" :key="item.value"></el-option>
|
|
|
</el-select>
|
|
|
- 提醒)<span style="margin-left:20px;">提醒文本</span>
|
|
|
+ {{ $t('tiXing') }})<span style="margin-left:20px;">{{ $t('remindertext') }}</span>
|
|
|
<el-input :placeholder="$t('peaseenterthe')" v-model="timeType.alertCheckMsg" clearable class="apu" maxlength="50"></el-input>
|
|
|
- <span style="color:orange;margin-left:10px;">(可用{0}表示待审核条数,例如:{0}将被替换为10。)</span>
|
|
|
+ <span style="color:orange;margin-left:10px;">{{ $t('keYong_0BiaoShiDaiShenHeTiaoShuLiRu_0JiangBeiTiHuanWei_10') }}</span>
|
|
|
</span>
|
|
|
</div>
|
|
|
|
|
@@ -284,31 +284,31 @@
|
|
|
<div class="panel" style="height:260px;">
|
|
|
<el-form :inline="true" :model="timeType" style="margin-top:10px;">
|
|
|
<div class="panel_flx">
|
|
|
- <el-form-item>额外工作日设置:</el-form-item>
|
|
|
+ <el-form-item>{{ $t('eWaiGongZuoRiSheZhi') }}</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-checkbox v-model="settOne" label="周六" />
|
|
|
+ <el-checkbox v-model="settOne" :label="$t('weekDay.saturday')" />
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-checkbox v-model="settTwo" label="周日" />
|
|
|
+ <el-checkbox v-model="settTwo" :label="$t('weekDay.sunday')" />
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-checkbox v-model="settThree" label="其他法定节日" />
|
|
|
+ <el-checkbox v-model="settThree" :label="$t('qiTaFaDingJieRi')" />
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<el-form-item>
|
|
|
- <el-checkbox v-model="timeType.stopReport" label="关闭日报填报功能" /> <el-checkbox v-model="timeType.notAllowedOnNonWorkday" label="非工作日(含周末为法定工作日)禁止填报" @change="onNonWorkDaySet()"/> <el-checkbox :disabled="timeType.notAllowedOnNonWorkday" v-model="timeType.includeWeekends" label="批量/代填含周末" />
|
|
|
+ <el-checkbox v-model="timeType.stopReport" :label="$t('guanBiRiBaoTianBaoGongNeng')" /> <el-checkbox v-model="timeType.notAllowedOnNonWorkday" :label="$t('feiGongZuoRiHanZhouMoWeiFaDingGongZuoRiJinZhiTianBao')" @change="onNonWorkDaySet()"/> <el-checkbox :disabled="timeType.notAllowedOnNonWorkday" v-model="timeType.includeWeekends" :label="$t('piLiangDaiTianHanZhouMo')" />
|
|
|
</el-form-item><br/>
|
|
|
<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 v-if="timeType.fillMonths == 2" style="color:#606266;">,于次月
|
|
|
+ <span v-if="timeType.fillMonths == 2" style="color:#606266;">,{{ $t('yuCiYue') }}
|
|
|
<el-select v-model="timeType.fillMonthOnDay" style="width:80px;">
|
|
|
<el-option v-for="item in alertDayRange" :key="item" :label="item" :value="item">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
- 号(含)前填报。
|
|
|
+ {{ $t('haoHanQianTianBao') }}
|
|
|
</span>
|
|
|
|
|
|
<span style="color:#666;margin-left:10px;">{{ $t('instructions') }}</span>
|
|
@@ -329,16 +329,16 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<div class="yanjiu">
|
|
|
- <p style="margin-left:10px;color:#666;">日报审核模式</p><el-tag style="margin-left:10px;" type="plain">{{reportAuditTypeArray[timeType.reportAuditType]}}
|
|
|
- <el-tooltip effect="dark" content="如需修改为其他审核模式,请联系客服" placement="top-start">
|
|
|
+ <p style="margin-left:10px;color:#666;">{{ $t('riBaoShenHeMoShi') }}</p><el-tag style="margin-left:10px;" type="plain">{{reportAuditTypeArray[timeType.reportAuditType]}}
|
|
|
+ <el-tooltip effect="dark" :content="$t('ruXuXiuGaiWeiQiTaShenHeMoShiQingLianXiKeFu')" placement="top-start">
|
|
|
<i class="el-icon-question" style="color:#606266"></i>
|
|
|
</el-tooltip>
|
|
|
</el-tag>
|
|
|
</div>
|
|
|
<div class="yanjiu">
|
|
|
- <p style="margin-left:10px;color:#666;">项目超期后不可填报</p>
|
|
|
+ <p style="margin-left:10px;color:#666;">{{ $t('xiangMuChaoQiHouBuKeTianBao') }}</p>
|
|
|
<el-switch style="margin-left: 40px" v-model="timeType.notAllowedExpiredProject" active-color="#20a0ff" > </el-switch>
|
|
|
- <span style="margin-left:10px;color:#999;">开启后超过项目计划结束日期的日报将不可填报</span>
|
|
|
+ <span style="margin-left:10px;color:#999;">{{ $t('kaiQiHouChaoGuoXiangMuJiHuaJieShuRiQiDeRiBaoJiangBuKeTianBao') }}</span>
|
|
|
</div>
|
|
|
<!-- 设置研究中心 -->
|
|
|
<div class="yanjiu">
|
|
@@ -361,7 +361,7 @@
|
|
|
<el-button type="primary" size="small" @click="bianji()">{{ $t('datamaintenance') }}</el-button>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-checkbox type="primary" size="small" v-model="timeType.customDegreeMultiple" style="margin-left:20px;">填报时可多选</el-checkbox>
|
|
|
+ <el-checkbox type="primary" size="small" v-model="timeType.customDegreeMultiple" style="margin-left:20px;">{{ $t('tianBaoShiKeDuoXuan') }}</el-checkbox>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -417,20 +417,20 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<div class="yanjiu" v-if="user.company.packageProject==1">
|
|
|
- <span style="margin:0px 0 10px 10px;color:#666;">填报日报是否隐藏阶段</span>
|
|
|
+ <span style="margin:0px 0 10px 10px;color:#666;">{{ $t('tianBaoRiBaoShiFouYinCangJieDuan') }}</span>
|
|
|
<el-switch style="margin:0px 0 10px 81px;" v-model="timeType.hideStages" active-color="#20a0ff"></el-switch>
|
|
|
</div>
|
|
|
<div class="yanjiu" v-if="user.company.packageProject==1">
|
|
|
- <span style="margin:0px 0 10px 10px;color:#666;">填报日报是否隐藏任务</span>
|
|
|
+ <span style="margin:0px 0 10px 10px;color:#666;">{{ $t('tianBaoRiBaoShiFouYinCangRenWu') }}</span>
|
|
|
<el-switch style="margin:0px 0 10px 81px;" v-model="timeType.hideTask" active-color="#20a0ff" @change="onHideTask()"></el-switch>
|
|
|
</div>
|
|
|
<div class="yanjiu" v-if="user.company.packageProject==1 && !timeType.hideTask">
|
|
|
- <span style="margin:0px 0 10px 10px;color:#666;">任务是否必填</span>
|
|
|
+ <span style="margin:0px 0 10px 10px;color:#666;">{{ $t('renWuShiFouBiTian') }}</span>
|
|
|
<el-switch style="margin:0px 0 10px 81px;" v-model="timeType.taskRequired" active-color="#20a0ff"></el-switch>
|
|
|
<span style="margin:0px 0 10px 10px;color:#999;">{{ $t('parametermandatory') }}</span>
|
|
|
</div>
|
|
|
<div class="yanjiu">
|
|
|
- <span style="margin:0px 0 10px 10px;color:#666;">任务分组</span>
|
|
|
+ <span style="margin:0px 0 10px 10px;color:#666;">{{ $t('lable.taskGrouping') }}</span>
|
|
|
<el-switch style="margin-left:108px;" v-model="timeType.taskGroupRequired" active-color="#20a0ff"></el-switch>
|
|
|
<span style="margin:0px 0 10px 10px;color:#999;">{{ $t('parametermandatory') }}</span>
|
|
|
</div>
|
|
@@ -449,7 +449,7 @@
|
|
|
<!-- 特殊节假日设置 -->
|
|
|
<div class="yanjiu">
|
|
|
<p style="margin: 0 68px 0 10px;color:#666;">{{'特殊节假日设置'}}</p>
|
|
|
- <el-button size="small" type="primary" @click="holidaySeeting()">设置</el-button>
|
|
|
+ <el-button size="small" type="primary" @click="holidaySeeting()">{{ $t('setup') }}</el-button>
|
|
|
<span style="margin-left:10px;color:#999;">{{'设置部门或人员的特殊节假日'}}</span>
|
|
|
</div>
|
|
|
|
|
@@ -464,16 +464,16 @@
|
|
|
<el-button type="primary" @click="submitInsert" :loading="addLoading">{{ $t('save') }}</el-button>
|
|
|
</div>
|
|
|
<!-- 特殊节假日设置列表 -->
|
|
|
- <el-dialog :title="'特殊节假日列表'" show-header="false" :top="'10vh'" v-if="holidaySeetingDialog" :visible.sync="holidaySeetingDialog" :close-on-click-modal="false" customClass="customWidth" width="1000px">
|
|
|
+ <el-dialog :title="$t('teShuJieJiaRiLieBiao')" show-header="false" :top="'10vh'" v-if="holidaySeetingDialog" :visible.sync="holidaySeetingDialog" :close-on-click-modal="false" customClass="customWidth" width="1000px">
|
|
|
<el-table :data="holidaySeetingDatas" highlight-current-row height="400" style="width: 100%;">
|
|
|
- <el-table-column prop="holidayDate" width="120" :label="'日期'">
|
|
|
+ <el-table-column prop="holidayDate" width="120" :label="$t('weekDay.date')">
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="name" :label="'有效范围'" width="120">
|
|
|
+ <el-table-column prop="name" :label="$t('youXiaoFanWei')" width="120">
|
|
|
<template slot-scope="scope">
|
|
|
- {{scope.row.rangeType==0?"全公司":"部分成员"}}
|
|
|
+ {{scope.row.rangeType==0?$t('quanGongSi'):$t('buFenChengYuan')}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="name" :label="'有效部门'" width="300">
|
|
|
+ <el-table-column prop="name" :label="$t('youXiaoBuMen')" width="300">
|
|
|
<template slot-scope="scope">
|
|
|
<div v-if="user.userNameNeedTranslate != '1'">{{ scope.row.targetDeptsNames }}</div>
|
|
|
<div v-else>
|
|
@@ -484,7 +484,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="name" :label="'有效人员'" width="300">
|
|
|
+ <el-table-column prop="name" :label="$t('youXiaoRenYuan')" width="300">
|
|
|
<template slot-scope="scope">
|
|
|
<div v-if="user.userNameNeedTranslate != '1'">{{ scope.row.targetUsersNames }}</div>
|
|
|
<div v-else>
|
|
@@ -508,9 +508,9 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- 新增节假日设置 -->
|
|
|
- <el-dialog :title="'特殊节假日设置'" show-header="false" v-if="addHolidaySeeting" :visible.sync="addHolidaySeeting" :top="'10vh'" :close-on-click-modal="false" customClass="customWidth" width="600px">
|
|
|
+ <el-dialog :title="$t('teShuJieJiaRiSheZhi')" show-header="false" v-if="addHolidaySeeting" :visible.sync="addHolidaySeeting" :top="'10vh'" :close-on-click-modal="false" customClass="customWidth" width="600px">
|
|
|
<el-form ref="form" :model="holidaySeetingForm" label-width="80px">
|
|
|
- <el-form-item label="日期">
|
|
|
+ <el-form-item :label="$t('weekDay.date')">
|
|
|
<el-date-picker v-model="holidaySeetingForm.holidayDate"
|
|
|
:editable="false"
|
|
|
format="yyyy-MM-dd"
|
|
@@ -518,14 +518,14 @@
|
|
|
:clearable="false" type="date"
|
|
|
:placeholder="$t('optiondate')"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="有效范围">
|
|
|
- <el-radio v-model="holidaySeetingForm.rangeType" label="0">全公司</el-radio>
|
|
|
- <el-radio v-model="holidaySeetingForm.rangeType" label="1">部分成员</el-radio>
|
|
|
+ <el-form-item :label="$t('youXiaoFanWei')">
|
|
|
+ <el-radio v-model="holidaySeetingForm.rangeType" label="0">{{ $t('quanGongSi') }}</el-radio>
|
|
|
+ <el-radio v-model="holidaySeetingForm.rangeType" label="1">{{ $t('buFenChengYuan') }}</el-radio>
|
|
|
</el-form-item>
|
|
|
<div style="height: 36vh" v-if="holidaySeetingForm.rangeType!=1"></div>
|
|
|
<div v-if="holidaySeetingForm.rangeType==1">
|
|
|
<div class="specialHolidaysClass">
|
|
|
- <div class="titles">有效部门 <el-link type="primary" :underline="false" @click="showSpecialHolidays(1)">添加</el-link></div>
|
|
|
+ <div class="titles">{{ $t('youXiaoBuMen') }} <el-link type="primary" :underline="false" @click="showSpecialHolidays(1)">{{ $t('addTian') }}</el-link></div>
|
|
|
<div class="contents">
|
|
|
<el-tag style="margin:10px 0 0 10px" v-for="(item, index) in specialHolidaysDept.labels" :key="item.id" closable @close="specialHolidaysDelete('specialHolidaysDept', index)">
|
|
|
<span v-if="user.userNameNeedTranslate != '1'">{{item}}</span>
|
|
@@ -534,7 +534,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="specialHolidaysClass">
|
|
|
- <div class="titles">有效人员 <el-link type="primary" :underline="false" @click="showSpecialHolidays(2)">添加</el-link></div>
|
|
|
+ <div class="titles">{{ $t('youXiaoRenYuan') }} <el-link type="primary" :underline="false" @click="showSpecialHolidays(2)">{{ $t('addTian') }}</el-link></div>
|
|
|
<div class="contents">
|
|
|
<el-tag style="margin:10px 0 0 10px" v-for="(item, index) in specialHolidaysUser.labels" :key="item.id" closable @close="specialHolidaysDelete('specialHolidaysUser', index)">
|
|
|
<span v-if="user.userNameNeedTranslate != '1'">{{item}}</span>
|
|
@@ -546,7 +546,7 @@
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="addHolidaySeeting = false" >{{ $t('Shutdown') }}</el-button>
|
|
|
- <el-button type="primary" @click="submitInsertHolidaySeeting()" >{{'保存'}}</el-button>
|
|
|
+ <el-button type="primary" @click="submitInsertHolidaySeeting()" >{{ $t('save') }}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- 维护数据 -->
|
|
@@ -666,7 +666,7 @@
|
|
|
<!-- 日报提醒白名单 -->
|
|
|
<el-dialog :title="$t('screening.selectPeople')" v-if="whiteListDialog" :visible.sync="whiteListDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
|
|
|
<div v-if="user.userNameNeedTranslate == '1'">
|
|
|
- <el-input placeholder="请输入名字搜索" v-model.trim="wxFilterText" @keyup.enter.native="echartDepartment()" clearable @clear="clearEchartDepartment()" class="input-with-select">
|
|
|
+ <el-input :placeholder="$t('qingShuRuMingZiSouSuo')" v-model.trim="wxFilterText" @keyup.enter.native="echartDepartment()" clearable @clear="clearEchartDepartment()" class="input-with-select">
|
|
|
<el-button slot="append" icon="el-icon-search" @click="echartDepartment()"></el-button>
|
|
|
</el-input>
|
|
|
</div>
|
|
@@ -703,9 +703,9 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 特殊节假日设置 -->
|
|
|
- <el-dialog :title="specialHolidays == 1 ? '请选择部门' : '请选择人员'" :top="'10vh'" v-if="specialHolidaysDialog" :visible.sync="specialHolidaysDialog" :close-on-click-modal="false" customClass="customWidth" width="600px">
|
|
|
+ <el-dialog :title="specialHolidays == 1 ? $t('qing-xuan-ze-bu-men') : $t('pleaseselectpersonnel')" :top="'10vh'" v-if="specialHolidaysDialog" :visible.sync="specialHolidaysDialog" :close-on-click-modal="false" customClass="customWidth" width="600px">
|
|
|
<div v-if="user.userNameNeedTranslate == '1'">
|
|
|
- <el-input placeholder="请输入名字搜索" v-model.trim="wxFilterText" @keyup.enter.native="echartDepartment()" clearable @clear="clearEchartDepartment()" class="input-with-select">
|
|
|
+ <el-input :placeholder="$t('qingShuRuMingZiSouSuo')" v-model.trim="wxFilterText" @keyup.enter.native="echartDepartment()" clearable @clear="clearEchartDepartment()" class="input-with-select">
|
|
|
<el-button slot="append" icon="el-icon-search" @click="echartDepartment()"></el-button>
|
|
|
</el-input>
|
|
|
</div>
|
|
@@ -753,7 +753,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- reportAuditTypeArray:['项目审核人审核','分组负责人审核','先分组负责人审核再项目经理审核','员工自由选择审批人','项目所属BU审核','直属审核人或部门负责人审核','直属或部门负责人审核->项目日报审核人审核','部门和项目日报审核人并行审核'],
|
|
|
+ reportAuditTypeArray:[this.$t('xiangMuShenHeRenShenHe'),this.$t('fenZuFuZeRenShenHe'),this.$t('xianFenZuFuZeRenShenHeZaiXiangMuJingLiShenHe'),this.$t('yuanGongZiYouXuanZeShenPiRen'),this.$t('xiangMuSuoShuBuShenHe'),this.$t('zhiShuShenHeRenHuoBuMenFuZeRenShenHe'),this.$t('zhiShuHuoBuMenFuZeRenShenHeXiangMuRiBaoShenHeRenShenHe'),this.$t('buMenHeXiangMuRiBaoShenHeRenBingHangShenHe')],
|
|
|
expandedKeys: [],
|
|
|
checkStrictly: false,
|
|
|
checkedKeys:[],
|
|
@@ -774,14 +774,14 @@
|
|
|
tourFlg: false,
|
|
|
steps: [{
|
|
|
target: '[data-v-step="timetypeBox"]',
|
|
|
- content: `按照企业情况调整`,
|
|
|
+ content: this.$t('anZhaoQiYeQingKuangTiaoZheng'),
|
|
|
params: {
|
|
|
placement: 'left',
|
|
|
highlight: true
|
|
|
}
|
|
|
},{
|
|
|
target: '[data-v-step="/xinshozhidao1"]',
|
|
|
- content: `请先点击系统基础设置`,
|
|
|
+ content: this.$t('qingXianDianJiXiTongJiChuSheZhi'),
|
|
|
params: {
|
|
|
placement: 'right',
|
|
|
highlight: true
|
|
@@ -792,10 +792,10 @@
|
|
|
startTimeout: 1000, //1秒后执行
|
|
|
highlight: true,
|
|
|
labels: {
|
|
|
- buttonSkip: '跳过',
|
|
|
- buttonPrevious: '上一步',
|
|
|
- buttonNext: '下一步',
|
|
|
- buttonStop: '关闭'
|
|
|
+ buttonSkip: this.$t('tiaoGuo'),
|
|
|
+ buttonPrevious: this.$t('btn.previousstep'),
|
|
|
+ buttonNext: this.$t('btn.nextStep'),
|
|
|
+ buttonStop: this.$t('Shutdown')
|
|
|
}
|
|
|
},
|
|
|
myCallbacks: {
|
|
@@ -803,7 +803,7 @@
|
|
|
onNextStep: this.myCustomNextStepCallback
|
|
|
},
|
|
|
alertDayRange: ['1','2','3','4','5','6','7','8','9','10','11','12','13','14','15'],
|
|
|
- alertWeekDayRange: [{value:1,label:'周一'},{value:2,label:'周二'},{value:3,label:'周三'},{value:4,label:'周四'},{value:5,label:'周五'}],
|
|
|
+ alertWeekDayRange: [{value:1,label:this.$t('weekDay.monday')},{value:2,label:this.$t('weekDay.tuesday')},{value:3,label:this.$t('weekDay.wednesday')},{value:4,label:this.$t('weekDay.thursday')},{value:5,label:this.$t('weekDay.friday')}],
|
|
|
pushParam:{
|
|
|
day:'05',
|
|
|
hour:'01',
|
|
@@ -972,7 +972,7 @@
|
|
|
this.http.post('/holiday-setting/holidaySetting',{...newForm},res => {
|
|
|
if(res.code == 'ok'){
|
|
|
this.$message({
|
|
|
- message: "保存成功",
|
|
|
+ message: this.$t('savesuccess'),
|
|
|
type: 'success'
|
|
|
})
|
|
|
this.specialHolidaysDialog = false
|
|
@@ -1070,7 +1070,7 @@
|
|
|
},res => {
|
|
|
if(res.code == 'ok'){
|
|
|
console.log(res.data)
|
|
|
- var all = {id:-1,label: '全选',disabled:false,children:[]}
|
|
|
+ var all = {id:-1,label: this.$t('btn.selectAll'),disabled:false,children:[]}
|
|
|
all.children = JSON.parse(JSON.stringify(res.data))
|
|
|
this.options.unshift(all)
|
|
|
}else {
|
|
@@ -1230,13 +1230,13 @@
|
|
|
var data = this.$refs.deptTree.getCheckedNodes()
|
|
|
var deptId = [];
|
|
|
for(var i in data){
|
|
|
- if(data[i].label != '全选'){
|
|
|
+ if(data[i].label != this.$t('btn.selectAll')){
|
|
|
deptId.push(data[i].id)
|
|
|
}
|
|
|
}
|
|
|
this.restTime.departmentId = deptId
|
|
|
if(this.restTime.departmentId.length == 0){
|
|
|
- this.$message("请选择部门")
|
|
|
+ this.$message(this.$t('qing-xuan-ze-bu-men'))
|
|
|
return
|
|
|
}
|
|
|
}
|
|
@@ -1341,7 +1341,7 @@
|
|
|
this.addSubProject = true;
|
|
|
},
|
|
|
deleteHolidaySeeting(item) {
|
|
|
- this.$confirm('确定删除这条数据吗?','删除', {
|
|
|
+ this.$confirm(this.$t('queDingShanChuZheTiaoShuJuMa'),this.$t('btn.delete'), {
|
|
|
confirmButtonText: this.$t('btn.determine'),
|
|
|
cancelButtonText: this.$t('btn.cancel'),
|
|
|
type: "warning"
|