|
@@ -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>已选中 {{chosenMembCount}} 人</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>
|
|
|
|