|
@@ -33,7 +33,7 @@
|
|
|
<b-icon icon="people-fill"></b-icon>
|
|
|
</b-input-group-prepend>
|
|
|
|
|
|
- <b-form-input :state="validDepartment" @input="selectDepartment" list="name" class="mr-sm-2" placeholder="请选择部门"></b-form-input>
|
|
|
+ <b-form-input :state="validDepartment" @focus="clearInput" @input="selectDepartment" list="name" class="mr-sm-2" placeholder="请选择部门"></b-form-input>
|
|
|
|
|
|
<datalist id="name">
|
|
|
<option v-for="department in departmentList" :key="department.id" :value="department.id +' - '+ department.name"></option>
|
|
@@ -177,6 +177,9 @@ export default {
|
|
|
if (!item || type !== 'row') return
|
|
|
if (item['消耗时间(单位:小时)'] > 12) return 'table-danger'
|
|
|
if (item['消耗时间(单位:小时)'] < 8) return 'table-danger'
|
|
|
+ },
|
|
|
+ clearInput(e) {
|
|
|
+ e.target.value = '';
|
|
|
}
|
|
|
}
|
|
|
}
|