Commit 4e47ace5 by 张杰

修复离线报表时间控件

1 parent 02ea3ef9
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<el-form-item label="离线时间:"> <el-form-item label="离线时间:">
<!-- <el-date-picker v-model="searchForm.offDate" type="datetimerange" class="datatime_picker" unlink-panels range-separator="~" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" :picker-options="offPickerOptions" @change="onChangeDate"> <!-- <el-date-picker v-model="searchForm.offDate" type="datetimerange" class="datatime_picker" unlink-panels range-separator="~" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" :picker-options="offPickerOptions" @change="onChangeDate">
</el-date-picker> --> </el-date-picker> -->
<el-date-picker v-model="searchForm.offlineStartTime" class="sort_picker" type="datetime" unlink-panels placeholder="选择日期时间" value-format="yyyy-MM-dd HH:mm:ss" :picker-options="offPickerOptions"> <el-date-picker v-model="searchForm.offlineStartTime" class="sort_picker" type="datetime" unlink-panels placeholder="选择日期时间" value-format="yyyy-MM-dd HH:mm:ss" :picker-options="offPickerOptions" @change="onChangeDate">
</el-date-picker> </el-date-picker>
<span> ~ </span> <span> ~ </span>
<el-date-picker v-model="searchForm.offlineEndTime" class="sort_picker" type="datetime" placeholder="选择日期时间" value-format="yyyy-MM-dd HH:mm:ss" disabled> <el-date-picker v-model="searchForm.offlineEndTime" class="sort_picker" type="datetime" placeholder="选择日期时间" value-format="yyyy-MM-dd HH:mm:ss" disabled>
...@@ -273,11 +273,19 @@ export default { ...@@ -273,11 +273,19 @@ export default {
}, },
onChangeDate(e) { onChangeDate(e) {
console.log(e); let max = moment().format("YYYY-MM-DD HH:mm:ss");
this.$set(this.searchForm, "offlineEndTime", max);
}, },
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "@/styles/hadoop.scss"; @import "@/styles/hadoop.scss";
</style>
\ No newline at end of file \ No newline at end of file
</style>
<style lang="scss">
.el-picker-panel {
.el-button--text.el-picker-panel__link-btn {
display: none;
}
}
</style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!