|
@@ -72,7 +72,7 @@
|
|
|
<el-table-column label="备注" align="center" prop="remark"/>
|
|
|
<el-table-column label="考勤时间" align="center" prop="timeRange">
|
|
|
<template v-slot:default="scope">
|
|
|
- <el-tag v-for="item in scope.row.timeRange" :key="item">{{ item.start }}~{{ item.end }}</el-tag>
|
|
|
+ <el-tag v-for="(item,index) in scope.row.timeRange" :key="index">{{ item.start }}~{{ item.end }}</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
@@ -154,6 +154,17 @@
|
|
|
<el-form-item label="备注" prop="remark">
|
|
|
<el-input v-model="form.remark" placeholder="请输入备注"/>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="考勤范围" prop="poly">
|
|
|
+ <el-input class="poly-input" placeholder="请配置考勤范围" v-model="form.poly">
|
|
|
+ <template v-slot:append>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-map-location"
|
|
|
+ @click.prevent="removeTimeRange()"
|
|
|
+ ></el-button>
|
|
|
+ </template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
@@ -346,4 +357,16 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+.poly-input.el-input {
|
|
|
+ .el-input-group__append {
|
|
|
+ .el-button {
|
|
|
+ margin: auto;
|
|
|
+ font-size: 20px;
|
|
|
+ color: #00afff;
|
|
|
+ padding: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
</style>
|