|
@@ -72,24 +72,33 @@
|
|
|
prop="shiftNumbers"
|
|
|
label="班次"
|
|
|
width="180"
|
|
|
- ></el-table-column>
|
|
|
+ >
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ <span v-if="row.onWorkStatus != 1 && row.onWorkStatus != 1">
|
|
|
+ {{row.onWorkStatusN}}
|
|
|
+ </span>
|
|
|
+ <span v-else>
|
|
|
+ {{row.shiftNumbers}}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="onWorkResult" label="上班" width="180">
|
|
|
<template slot-scope="{ row }">
|
|
|
<span v-if="row.onWorkStatus == 1 && row.onWorkResult == 1">
|
|
|
<el-image
|
|
|
style="width: 40px; height: 40px"
|
|
|
src="http://rccs.oss-cn-hangzhou.aliyuncs.com/jp_housekeeper/img/work_yes.png"
|
|
|
- :fit="fit"
|
|
|
+ fit="fill"
|
|
|
></el-image>
|
|
|
</span>
|
|
|
<span v-else-if="row.onWorkStatus == 1 && row.onWorkResult != 1">
|
|
|
<el-image
|
|
|
style="width: 40px; height: 40px"
|
|
|
src="http://rccs.oss-cn-hangzhou.aliyuncs.com/jp_housekeeper/img/work_no.png"
|
|
|
- :fit="fit"
|
|
|
+ fit="fill"
|
|
|
></el-image>
|
|
|
</span>
|
|
|
- <span v-else>{{ row.onWorkStatusN }}</span>
|
|
|
+ <span v-else></span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="offWorkResult" label="下班" width="180">
|
|
@@ -98,17 +107,17 @@
|
|
|
<el-image
|
|
|
style="width: 40px; height: 40px"
|
|
|
src="http://rccs.oss-cn-hangzhou.aliyuncs.com/jp_housekeeper/img/work_yes.png"
|
|
|
- :fit="fit"
|
|
|
+ fit="fill"
|
|
|
></el-image>
|
|
|
</span>
|
|
|
<span v-else-if="row.offWorkStatus == 1 && row.offWorkResult != 1">
|
|
|
<el-image
|
|
|
style="width: 40px; height: 40px"
|
|
|
src="http://rccs.oss-cn-hangzhou.aliyuncs.com/jp_housekeeper/img/work_no.png"
|
|
|
- :fit="fit"
|
|
|
+ fit="fill"
|
|
|
></el-image>
|
|
|
</span>
|
|
|
- <span v-else>{{ row.offWorkStatusN }}</span>
|
|
|
+ <span v-else></span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -245,7 +254,8 @@ export default {
|
|
|
var personId = this.$route.query.personId;
|
|
|
var timeRanges = this.$route.query.timeRanges;
|
|
|
this.queryModel.personId = personId;
|
|
|
- this.queryModel.timeRanges = timeRanges;
|
|
|
+ let tims = timeRanges.split(",");
|
|
|
+ this.queryModel.timeRanges = [tims[0],tims[1]]
|
|
|
|
|
|
this.changePage();
|
|
|
},
|