fix: 修复创建时间选择框的label加粗失效的问题,修复时间范围清空,JS报错的问题
This commit is contained in:
parent
64688a5da0
commit
405d3b47ad
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user