|
@@ -207,8 +207,8 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item :label="$t('remindertext')" prop="alertMsg" style="width: 50%;margin-left:10px;">
|
|
<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-input :placeholder="$t('peaseenterthe')" v-model="timeType.alertMsg" clearable class="apu" maxlength="20"></el-input>
|
|
- <div style="display: inline-block;margin: 0 10px 0 20px" v-if="timeType.alertTime">周末节假日提醒</div>
|
|
|
|
- <el-switch v-if="timeType.alertTime" v-model="timeType.alertNonWorkday" active-color="#13ce66" inactive-color="#ff4949"></el-switch>
|
|
|
|
|
|
+ <!-- <div style="display: inline-block;margin: 0 10px 0 20px" v-if="timeType.alertTime">周末节假日提醒</div> -->
|
|
|
|
+ <!-- <el-switch v-if="timeType.alertTime" v-model="timeType.alertNonWorkday" active-color="#13ce66" inactive-color="#ff4949"></el-switch> -->
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
</el-form>
|
|
</el-form>
|
|
@@ -232,8 +232,20 @@
|
|
<p style="margin-left:10px;color:#666;">{{ $t('timesetting') }}</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-row :gutter="20" style="padding-top:10px;width:100%;margin:0 auto;padding-left:10px;padding-right:10px;">
|
|
<el-col :span="24" >
|
|
<el-col :span="24" >
|
|
- <div class="panel" style="height:180px;">
|
|
|
|
|
|
+ <div class="panel" style="height:260px;">
|
|
<el-form :inline="true" :model="timeType" style="margin-top:10px;">
|
|
<el-form :inline="true" :model="timeType" style="margin-top:10px;">
|
|
|
|
+ <div class="panel_flx">
|
|
|
|
+ <el-form-item>额外工作日设置:</el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-checkbox v-model="settOne" label="周六" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-checkbox v-model="settTwo" label="周日" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-checkbox v-model="settThree" label="其他法定节日" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </div>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-checkbox v-model="timeType.includeWeekends" label="批量/代填含周末" />
|
|
<el-checkbox v-model="timeType.includeWeekends" label="批量/代填含周末" />
|
|
</el-form-item><br/>
|
|
</el-form-item><br/>
|
|
@@ -497,6 +509,9 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ settThree: false,
|
|
|
|
+ settTwo: false,
|
|
|
|
+ settOne: false,
|
|
tourFlg: false,
|
|
tourFlg: false,
|
|
steps: [{
|
|
steps: [{
|
|
target: '[data-v-step="timetypeBox"]',
|
|
target: '[data-v-step="timetypeBox"]',
|
|
@@ -556,7 +571,6 @@
|
|
fillAhead: false,
|
|
fillAhead: false,
|
|
includeWeekends: false,
|
|
includeWeekends: false,
|
|
maxReportTime: 8,
|
|
maxReportTime: 8,
|
|
- alertNonWorkday: false
|
|
|
|
},
|
|
},
|
|
customDegreeActive: false,
|
|
customDegreeActive: false,
|
|
needDeptAudit: false,
|
|
needDeptAudit: false,
|
|
@@ -1128,7 +1142,14 @@
|
|
|
|
|
|
param.workContentState = param.workContentState ? 1 : 0
|
|
param.workContentState = param.workContentState ? 1 : 0
|
|
|
|
|
|
- param.alertNonWorkday = param.alertNonWorkday ? 1: 0
|
|
|
|
|
|
+ var oneseet = 0
|
|
|
|
+ var twoset = 0
|
|
|
|
+ var threeset = 0
|
|
|
|
+ this.settOne ? oneseet = 1 : oneseet = 0;
|
|
|
|
+ this.settTwo ? twoset = 1 : twoset = 0;
|
|
|
|
+ this.settThree ? threeset = 1 : threeset = 0;
|
|
|
|
+
|
|
|
|
+ param.alertNonWorkday = parseInt(`${oneseet}${twoset}${threeset}`)
|
|
|
|
|
|
delete param.excludeTimeList
|
|
delete param.excludeTimeList
|
|
// console.log(param, '将要提交的值')
|
|
// console.log(param, '将要提交的值')
|
|
@@ -1182,7 +1203,27 @@
|
|
this.timeType.customDataMaxStatus = this.timeType.customDataMaxStatus ? true : false
|
|
this.timeType.customDataMaxStatus = this.timeType.customDataMaxStatus ? true : false
|
|
this.timeType.customDataMaxValue = this.timeType.customDataMaxValue ? this.timeType.customDataMaxValue : 100
|
|
this.timeType.customDataMaxValue = this.timeType.customDataMaxValue ? this.timeType.customDataMaxValue : 100
|
|
this.timeType.reportAutoApproveDays = this.timeType.reportAutoApproveDays ? this.timeType.reportAutoApproveDays : 1
|
|
this.timeType.reportAutoApproveDays = this.timeType.reportAutoApproveDays ? this.timeType.reportAutoApproveDays : 1
|
|
- this.timeType.alertNonWorkday = this.timeType.alertNonWorkday ? true : false
|
|
|
|
|
|
+ // this.timeType.alertNonWorkday = this.timeType.alertNonWorkday ? true : false
|
|
|
|
+
|
|
|
|
+ if(this.timeType.alertNonWorkday) {
|
|
|
|
+ let str = this.timeType.alertNonWorkday + ''
|
|
|
|
+ let arr = str.split('')
|
|
|
|
+ if(arr.length == 1) {
|
|
|
|
+ arr.unshift('0')
|
|
|
|
+ arr.unshift('0')
|
|
|
|
+ } else if(arr.length == 2) {
|
|
|
|
+ arr.unshift('0')
|
|
|
|
+ }
|
|
|
|
+ console.log(arr)
|
|
|
|
+ this.settThree = arr[2] == 1 ? true : false
|
|
|
|
+ this.settTwo = arr[1] == 1 ? true : false
|
|
|
|
+ this.settOne = arr[0] == 1 ? true : false
|
|
|
|
+ } else {
|
|
|
|
+ this.settThree = false
|
|
|
|
+ this.settTwo = false
|
|
|
|
+ this.settOne = false
|
|
|
|
+ }
|
|
|
|
+
|
|
this.timeChange();
|
|
this.timeChange();
|
|
|
|
|
|
this.maxReportTimeRange = [] // 填报时长上限
|
|
this.maxReportTimeRange = [] // 填报时长上限
|
|
@@ -1344,4 +1385,8 @@
|
|
justify-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
align-items: center;
|
|
}
|
|
}
|
|
|
|
+.panel_flx {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|