|
|
@ -1,89 +1,44 @@ |
|
|
|
<template> |
|
|
|
<Dialog v-model="modelVisible" title="事件详情" width="890px" top="11%"> |
|
|
|
<div |
|
|
|
class="EventDetail" |
|
|
|
:style="{ |
|
|
|
height: activeName == '-1' || activeName == '0' ? '380px' : '598px', |
|
|
|
}" |
|
|
|
> |
|
|
|
<div class="EventDetail" :style="{ |
|
|
|
height: activeName == '-1' || activeName == '0' ? '380px' : '598px', |
|
|
|
}"> |
|
|
|
<Form :formList="formList" :dFormData="formData" label-width="100px" /> |
|
|
|
|
|
|
|
<div class="video-pic"> |
|
|
|
<Video |
|
|
|
style="height: 100%; width: 380px" |
|
|
|
:showHeader="false" |
|
|
|
:url=" |
|
|
|
formData.videoList && formData.videoList.length > 0 |
|
|
|
? formData.videoList[0] |
|
|
|
: '' |
|
|
|
" |
|
|
|
:camId="formData.upCamId" |
|
|
|
:pileNum="formData.stakeMark" |
|
|
|
rangeIndex="upCamera" |
|
|
|
:videoType="formData.videoType" |
|
|
|
/> |
|
|
|
<Video |
|
|
|
v-if="activeName != '-1'" |
|
|
|
style="height: 100%; width: 380px" |
|
|
|
:showHeader="false" |
|
|
|
:url=" |
|
|
|
formData.videoList && formData.videoList.length > 0 |
|
|
|
? formData.videoList[1] |
|
|
|
: '' |
|
|
|
" |
|
|
|
:camId="formData.downCamId" |
|
|
|
:pileNum="formData.stakeMark" |
|
|
|
rangeIndex="downCamera" |
|
|
|
:videoType="formData.videoType" |
|
|
|
/> |
|
|
|
|
|
|
|
<Carousel v-else style="flex: 1" :pictures="formData.pictures" /> |
|
|
|
<Video v-if="activeName != '-1'" style="height: 100%; width: 380px" :showHeader="false" :url="formData.videoList && formData.videoList.length > 0 |
|
|
|
? formData.videoList[0] : ''" :camId="formData.upCamId" :pileNum="formData.stakeMark" rangeIndex="upCamera" |
|
|
|
:videoType="formData.videoType" /> |
|
|
|
|
|
|
|
<Video v-if="activeName != '-1'" style="height: 100%; width: 380px" :showHeader="false" :url="formData.videoList && formData.videoList.length > 0 |
|
|
|
? formData.videoList[1] : ''" :camId="formData.downCamId" :pileNum="formData.stakeMark" rangeIndex="downCamera" |
|
|
|
:videoType="formData.videoType" /> |
|
|
|
|
|
|
|
<Carousel v-if="activeName == '-1'" style="flex: 1" :videos="formData.videoList" :pictures="[]"/> |
|
|
|
<Carousel v-if="activeName == '-1'" style="flex: 1" :pictures="formData.pictures" :videos="[]"/> |
|
|
|
|
|
|
|
</div> |
|
|
|
<!-- <div>{{ formData.videoList[0] }}</div> --> |
|
|
|
<TimeLine1 |
|
|
|
v-if="activeName == '1' || activeName == '2'" |
|
|
|
:data="timeLine1List" |
|
|
|
/> |
|
|
|
<TimeLine2 |
|
|
|
v-if="activeName == '1' || activeName == '2'" |
|
|
|
:data="timeLine2List" |
|
|
|
style="flex: 1" |
|
|
|
/> |
|
|
|
<TimeLine1 v-if="activeName == '1' || activeName == '2'" :data="timeLine1List" /> |
|
|
|
<TimeLine2 v-if="activeName == '1' || activeName == '2'" :data="timeLine2List" style="flex: 1" /> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 确认弹窗 --> |
|
|
|
<EventPlanDialog |
|
|
|
:visible="isShowDialog" |
|
|
|
:info="info" |
|
|
|
:eventFormData="formData" |
|
|
|
:activeName="activeName" |
|
|
|
@reInitData=" |
|
|
|
() => { |
|
|
|
this.$emit('update:value', false); |
|
|
|
this.$emit('queryData', true); |
|
|
|
} |
|
|
|
" |
|
|
|
@close="onCloseAddNew" |
|
|
|
/> |
|
|
|
<EventPlanDialog :visible="isShowDialog" :info="info" :eventFormData="formData" :activeName="activeName" |
|
|
|
@reInitData="() => { |
|
|
|
this.$emit('update:value', false); |
|
|
|
this.$emit('queryData', true); |
|
|
|
} |
|
|
|
" @close="onCloseAddNew" /> |
|
|
|
|
|
|
|
<template #footer> |
|
|
|
<Button |
|
|
|
v-if="activeName == '-1' || activeName == '0'" |
|
|
|
style="padding: 0 24px" |
|
|
|
@click.native="onDelete" |
|
|
|
>误报</Button |
|
|
|
> |
|
|
|
<Button |
|
|
|
:style="{ backgroundColor: '#C9C9C9', padding: '0 24px' }" |
|
|
|
@click.native="modelVisible = false" |
|
|
|
>取消</Button |
|
|
|
> |
|
|
|
<Button |
|
|
|
v-if="activeName == '-1' || activeName == '0'" |
|
|
|
style="padding: 0 24px" |
|
|
|
@click.native="onSubmit" |
|
|
|
>确认</Button |
|
|
|
> |
|
|
|
<Button v-if="activeName == '-1' || activeName == '0'" style="padding: 0 24px" |
|
|
|
@click.native="onDelete">误报</Button> |
|
|
|
<Button :style="{ backgroundColor: '#C9C9C9', padding: '0 24px' }" |
|
|
|
@click.native="modelVisible = false">取消</Button> |
|
|
|
<Button v-if="activeName == '-1' || activeName == '0'" style="padding: 0 24px" |
|
|
|
@click.native="onSubmit">确认</Button> |
|
|
|
</template> |
|
|
|
</Dialog> |
|
|
|
</template> |
|
|
@ -124,7 +79,7 @@ export default { |
|
|
|
activeName: String, |
|
|
|
formData: { |
|
|
|
type: Object, |
|
|
|
default: () => {}, |
|
|
|
default: () => { }, |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|