|
@@ -17,6 +17,7 @@
|
|
|
value-format="YYYY-MM-DD HH:mm:ss"
|
|
value-format="YYYY-MM-DD HH:mm:ss"
|
|
|
:clearable="true"
|
|
:clearable="true"
|
|
|
placeholder="拖动进度条选择时间"
|
|
placeholder="拖动进度条选择时间"
|
|
|
|
|
+ @change="changeStart"
|
|
|
/>
|
|
/>
|
|
|
<!-- <el-input
|
|
<!-- <el-input
|
|
|
v-model="startTime"
|
|
v-model="startTime"
|
|
@@ -49,7 +50,7 @@
|
|
|
type="datetime"
|
|
type="datetime"
|
|
|
format="YYYY-MM-DD HH:mm:ss"
|
|
format="YYYY-MM-DD HH:mm:ss"
|
|
|
value-format="YYYY-MM-DD HH:mm:ss"
|
|
value-format="YYYY-MM-DD HH:mm:ss"
|
|
|
- :disabled="!startTime.length"
|
|
|
|
|
|
|
+ :disabled="!startTime || !startTime.length"
|
|
|
:clearable="true"
|
|
:clearable="true"
|
|
|
placeholder="拖动进度条选择时间"
|
|
placeholder="拖动进度条选择时间"
|
|
|
@change="judgeDate"
|
|
@change="judgeDate"
|
|
@@ -81,7 +82,7 @@
|
|
|
<el-button
|
|
<el-button
|
|
|
type="primary"
|
|
type="primary"
|
|
|
:loading="isCallingDownload"
|
|
:loading="isCallingDownload"
|
|
|
- :disabled="!startTime.length || !endTime.length"
|
|
|
|
|
|
|
+ :disabled="!startTime || !endTime || !startTime.length || !endTime.length"
|
|
|
@click="nvrDownload"
|
|
@click="nvrDownload"
|
|
|
>下 载</el-button
|
|
>下 载</el-button
|
|
|
>
|
|
>
|
|
@@ -109,12 +110,21 @@
|
|
|
const nvrDownload = () => {
|
|
const nvrDownload = () => {
|
|
|
emit('downloadNvr');
|
|
emit('downloadNvr');
|
|
|
};
|
|
};
|
|
|
|
|
+
|
|
|
|
|
+ const changeStart = (val) => {
|
|
|
|
|
+ if (!val) {
|
|
|
|
|
+ endTime.value = '';
|
|
|
|
|
+ }
|
|
|
|
|
+ };
|
|
|
const clearTime = () => {
|
|
const clearTime = () => {
|
|
|
startTime.value = '';
|
|
startTime.value = '';
|
|
|
endTime.value = '';
|
|
endTime.value = '';
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const judgeDate = (value) => {
|
|
const judgeDate = (value) => {
|
|
|
|
|
+ if (!endTime.value) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
const startTimeStamp = new Date(startTime.value).getTime();
|
|
const startTimeStamp = new Date(startTime.value).getTime();
|
|
|
const endTimeStamp = new Date(value).getTime();
|
|
const endTimeStamp = new Date(value).getTime();
|
|
|
if (endTimeStamp <= startTimeStamp) {
|
|
if (endTimeStamp <= startTimeStamp) {
|