|
@@ -407,10 +407,11 @@
|
|
<div class="ctons" style="width: 98%;">
|
|
<div class="ctons" style="width: 98%;">
|
|
<div style="display: flex;align-items: center;padding-bottom: 20px;border-bottom: 1px solid #f2f2f2">
|
|
<div style="display: flex;align-items: center;padding-bottom: 20px;border-bottom: 1px solid #f2f2f2">
|
|
<div style="display: inline-block;width: 350px">
|
|
<div style="display: inline-block;width: 350px">
|
|
- <el-input style="float:left;" v-if="user.userNameNeedTranslate != 1" v-model="userName" class="input-with-select" @keyup.enter.native="restTime()" :placeholder="$t('pleaseenterstaffsearch')" clearable="true" size="small">
|
|
|
|
|
|
+ <!-- <el-input style="float:left;" v-if="user.userNameNeedTranslate != 1" v-model="userName" class="input-with-select" @keyup.enter.native="restTime()" :placeholder="$t('pleaseenterstaffsearch')" clearable="true" size="small">
|
|
<el-button slot="append" @click="restTime()" icon="el-icon-search"></el-button>
|
|
<el-button slot="append" @click="restTime()" icon="el-icon-search"></el-button>
|
|
</el-input>
|
|
</el-input>
|
|
- <selectCat v-if="user.userNameNeedTranslate == 1" :size="'small'" :widthStr="'240'" :subject="users" :distinction="'11'" :disabled="false" @selectCal="selectCal" :clearable="true"></selectCat>
|
|
|
|
|
|
+ <selectCat v-if="user.userNameNeedTranslate == 1" :size="'small'" :widthStr="'240'" :subject="users" :distinction="'11'" :disabled="false" @selectCal="selectCal" :clearable="true"></selectCat> -->
|
|
|
|
+ <selectPersonnel v-model="userId" @change="restTime" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- <div style="margin-top: 30px"> -->
|
|
<!-- <div style="margin-top: 30px"> -->
|
|
@@ -427,12 +428,12 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="restTimeDayStr" :label="$t('totaldaysRest')" width="300">
|
|
|
|
|
|
+ <el-table-column prop="restTimeDayStr" :label="$t('remaindaysRest')" width="300">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{scope.row.restTimeDayStr}} / {{ $t('time.day') }}
|
|
{{scope.row.restTimeDayStr}} / {{ $t('time.day') }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="restTimeHourStr" :label="$t('totallengthofRest')">
|
|
|
|
|
|
+ <el-table-column prop="restTimeHourStr" :label="$t('remainlengthofRest')">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{scope.row.restTimeHourStr}}/{{ $t('time.hour') }}
|
|
{{scope.row.restTimeHourStr}}/{{ $t('time.hour') }}
|
|
</template>
|
|
</template>
|
|
@@ -805,6 +806,7 @@ import { config, error } from 'dingtalk-jsapi';
|
|
// 自定义select组件
|
|
// 自定义select组件
|
|
import selectCat from "@/components/select.vue"
|
|
import selectCat from "@/components/select.vue"
|
|
import Select from '../../components/select.vue';
|
|
import Select from '../../components/select.vue';
|
|
|
|
+import selectPersonnel from '../../components/selectPersonnel.vue';
|
|
|
|
|
|
// 引入自定义级联组件
|
|
// 引入自定义级联组件
|
|
import vueCascader from "@/components/cascader.vue"
|
|
import vueCascader from "@/components/cascader.vue"
|
|
@@ -814,7 +816,8 @@ export default {
|
|
components: {
|
|
components: {
|
|
selectCat,
|
|
selectCat,
|
|
Select,
|
|
Select,
|
|
- vueCascader
|
|
|
|
|
|
+ vueCascader,
|
|
|
|
+ selectPersonnel
|
|
},
|
|
},
|
|
props: {},
|
|
props: {},
|
|
data() {
|
|
data() {
|
|
@@ -894,7 +897,7 @@ export default {
|
|
total:0,
|
|
total:0,
|
|
apk: false,
|
|
apk: false,
|
|
keyword: '',
|
|
keyword: '',
|
|
- userName:'',
|
|
|
|
|
|
+ userId:'',
|
|
statData: this.getCurrentTimes(),
|
|
statData: this.getCurrentTimes(),
|
|
endData: this.getCurrentTime(),
|
|
endData: this.getCurrentTime(),
|
|
statisticalList: [],
|
|
statisticalList: [],
|
|
@@ -2141,7 +2144,7 @@ export default {
|
|
restTime() {
|
|
restTime() {
|
|
this.loading = true
|
|
this.loading = true
|
|
this.http.post('/leave-sheet/getCompanyUserTime', {
|
|
this.http.post('/leave-sheet/getCompanyUserTime', {
|
|
- userName: this.userName,
|
|
|
|
|
|
+ userId: this.userId,
|
|
},
|
|
},
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|