fix: 修复创建时间选择框的label加粗失效的问题,修复时间范围清空,JS报错的问题

This commit is contained in:
valarchie 2023-02-05 13:03:45 +08:00
parent 64688a5da0
commit 405d3b47ad
6 changed files with 12 additions and 3 deletions

View File

@ -47,9 +47,11 @@ export function resetForm(refName) {
// 添加时间查询参数
export function addTimeRange(params, dateRange) {
const [beginTime, endTime] = dateRange;
params.beginTime = beginTime;
params.endTime = endTime;
if (dateRange != null) {
const [beginTime, endTime] = dateRange;
params.beginTime = beginTime;
params.endTime = endTime;
}
return params;
}

View File

@ -33,6 +33,7 @@
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
<el-input v-show="false"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>

View File

@ -38,6 +38,8 @@
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
<!-- datepicker加lable会失效 因为datepicker里面两个input 所以加这个标签取巧修复这个问题 -->
<el-input v-show="false"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>

View File

@ -33,6 +33,8 @@
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
<!-- datepicker加lable会失效 因为datepicker里面两个input 所以加这个标签取巧修复这个问题 -->
<el-input v-show="false"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>

View File

@ -33,6 +33,7 @@
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
<el-input v-show="false"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>

View File

@ -60,6 +60,7 @@
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
<el-input v-show="false"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>