|
@@ -1,18 +1,8 @@
|
|
|
<template>
|
|
|
<!-- value-format="yyyy-MM-dd" -->
|
|
|
- <el-date-picker
|
|
|
- v-model="dateValue"
|
|
|
- class="timePicker"
|
|
|
- type="daterange"
|
|
|
- :picker-options="pickerOptions"
|
|
|
- value-format="yyyyMMdd"
|
|
|
- range-separator="-"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
- :clearable="false"
|
|
|
- align="left"
|
|
|
- @change="dateChange"
|
|
|
- >
|
|
|
+ <el-date-picker v-model="dateValue" class="timePicker" type="daterange" :picker-options="pickerOptions"
|
|
|
+ value-format="yyyyMMdd" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :clearable="false"
|
|
|
+ align="left" @change="dateChange">
|
|
|
</el-date-picker>
|
|
|
</template>
|
|
|
|
|
@@ -69,7 +59,7 @@ export default {
|
|
|
methods: {
|
|
|
dateChange() {
|
|
|
this.$emit("dateChange", this.dateValue);
|
|
|
- store.setCockpitHysyText(this.dateValue);
|
|
|
+ store.setCockpitDate(this.dateValue);
|
|
|
},
|
|
|
},
|
|
|
};
|
|
@@ -86,17 +76,21 @@ export default {
|
|
|
padding: 0;
|
|
|
width: 180px !important;
|
|
|
}
|
|
|
+
|
|
|
.el-date-editor .el-range__close-icon {
|
|
|
display: none;
|
|
|
}
|
|
|
+
|
|
|
.el-picker-panel__sidebar {
|
|
|
background: #002446;
|
|
|
border-color: #64daff;
|
|
|
border-radius: 6px 0 0 6px;
|
|
|
+
|
|
|
.el-picker-panel__shortcut {
|
|
|
color: rgba(255, 255, 255, 1);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
//// 时间选择器 通用样式
|
|
|
.el-date-editor--daterange.el-input__inner {
|
|
|
width: 200px;
|