|
@@ -11,16 +11,23 @@
|
|
|
开始时间:
|
|
开始时间:
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="startTime"
|
|
v-model="startTime"
|
|
|
- style="width: 160px"
|
|
|
|
|
|
|
+ style="width: 160px; margin: 0 8px"
|
|
|
disabled
|
|
disabled
|
|
|
placeholder="拖动进度条选择时间"
|
|
placeholder="拖动进度条选择时间"
|
|
|
/>
|
|
/>
|
|
|
- <img
|
|
|
|
|
- @click="callSetTime(true)"
|
|
|
|
|
- style="cursor: pointer"
|
|
|
|
|
- src="@\assets\icons\icon-picker.png"
|
|
|
|
|
- alt=""
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <el-tooltip
|
|
|
|
|
+ class="picker-tooltip"
|
|
|
|
|
+ effect="dark"
|
|
|
|
|
+ content="请先拖动进度条,再点击按钮选择时间"
|
|
|
|
|
+ placement="top"
|
|
|
|
|
+ >
|
|
|
|
|
+ <img
|
|
|
|
|
+ @click="callSetTime(true)"
|
|
|
|
|
+ style="cursor: pointer"
|
|
|
|
|
+ src="@\assets\icons\icon-picker.png"
|
|
|
|
|
+ alt=""
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-tooltip>
|
|
|
<el-icon class="icon-refresh" :size="18">
|
|
<el-icon class="icon-refresh" :size="18">
|
|
|
<Refresh @click="startTime = ''" />
|
|
<Refresh @click="startTime = ''" />
|
|
|
</el-icon>
|
|
</el-icon>
|
|
@@ -29,16 +36,23 @@
|
|
|
结束时间:
|
|
结束时间:
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="endTime"
|
|
v-model="endTime"
|
|
|
- style="width: 160px"
|
|
|
|
|
|
|
+ style="width: 160px; margin: 0 8px"
|
|
|
disabled
|
|
disabled
|
|
|
placeholder="拖动进度条选择时间"
|
|
placeholder="拖动进度条选择时间"
|
|
|
/>
|
|
/>
|
|
|
- <img
|
|
|
|
|
- @click="callSetTime(false)"
|
|
|
|
|
- style="cursor: pointer"
|
|
|
|
|
- src="@\assets\icons\icon-picker.png"
|
|
|
|
|
- alt=""
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <el-tooltip
|
|
|
|
|
+ class="picker-tooltip"
|
|
|
|
|
+ effect="dark"
|
|
|
|
|
+ content="请先拖动进度条,再点击按钮选择时间"
|
|
|
|
|
+ placement="top"
|
|
|
|
|
+ >
|
|
|
|
|
+ <img
|
|
|
|
|
+ @click="callSetTime(false)"
|
|
|
|
|
+ style="cursor: pointer"
|
|
|
|
|
+ src="@\assets\icons\icon-picker.png"
|
|
|
|
|
+ alt=""
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-tooltip>
|
|
|
<el-icon class="icon-refresh" :size="18">
|
|
<el-icon class="icon-refresh" :size="18">
|
|
|
<Refresh @click="endTime = ''" />
|
|
<Refresh @click="endTime = ''" />
|
|
|
</el-icon>
|
|
</el-icon>
|
|
@@ -58,7 +72,7 @@
|
|
|
import { ref } from 'vue';
|
|
import { ref } from 'vue';
|
|
|
import { ElInput } from 'element-plus';
|
|
import { ElInput } from 'element-plus';
|
|
|
import { Refresh } from '@element-plus/icons-vue';
|
|
import { Refresh } from '@element-plus/icons-vue';
|
|
|
- import { ElIcon } from 'element-plus';
|
|
|
|
|
|
|
+ import { ElIcon, ElTooltip } from 'element-plus';
|
|
|
|
|
|
|
|
const startTime = ref('');
|
|
const startTime = ref('');
|
|
|
const endTime = ref('');
|
|
const endTime = ref('');
|
|
@@ -119,14 +133,20 @@
|
|
|
padding: 12px 22px 0 22px;
|
|
padding: 12px 22px 0 22px;
|
|
|
.time-picker {
|
|
.time-picker {
|
|
|
margin-bottom: 12px;
|
|
margin-bottom: 12px;
|
|
|
- img {
|
|
|
|
|
- display: inline;
|
|
|
|
|
- margin-left: 20px;
|
|
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ .picker-tooltip {
|
|
|
|
|
+ width: 110px;
|
|
|
|
|
+ margin-top: 10px;
|
|
|
|
|
+
|
|
|
|
|
+ img {
|
|
|
|
|
+ display: inline;
|
|
|
|
|
+ margin-left: 20px;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.icon-refresh {
|
|
.icon-refresh {
|
|
|
color: #1890ff;
|
|
color: #1890ff;
|
|
|
- top: 5px;
|
|
|
|
|
- margin: 0 5px;
|
|
|
|
|
|
|
+ margin: 0 8px;
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|