详情下发按钮对应
parent
64fbd47b89
commit
39168b5bc5
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
|
|
@ -15,7 +15,7 @@
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'DINPro';
|
font-family: 'DINPro';
|
||||||
src: url('/bigScreen/fonts/fonts/DINPro-Medium.ttf') format('truetype');
|
src: url('/bigScreen/fonts/DINPro-Medium.ttf') format('truetype');
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
@ -25,6 +25,12 @@
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'AlibabaPuHuiTiR';
|
||||||
|
src: url('/bigScreen/fonts/AlibabaPuHuiTiRegular.ttf') format('truetype');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
.iconfont {
|
.iconfont {
|
||||||
font-family: "iconfont" !important;
|
font-family: "iconfont" !important;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,16 @@
|
||||||
<div class="address-span">预警位置:</div>
|
<div class="address-span">预警位置:</div>
|
||||||
<div class="address-value">{{ info.detailed_address }}</div>
|
<div class="address-value">{{ info.detailed_address }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="operation-button-div">
|
||||||
|
<div class="close-forewarning-button">
|
||||||
|
<span class="button-span">关闭</span>
|
||||||
|
<span class="button-span-shadow">关闭</span>
|
||||||
|
</div>
|
||||||
|
<div class="save-button" @click="save">
|
||||||
|
<span class="button-span">下发</span>
|
||||||
|
<span class="button-span-shadow">下发</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -116,6 +126,9 @@ export default {
|
||||||
this.isDragging = false;
|
this.isDragging = false;
|
||||||
window.removeEventListener('mousemove', this.onMouseMove);
|
window.removeEventListener('mousemove', this.onMouseMove);
|
||||||
window.removeEventListener('mouseup', this.onMouseUp);
|
window.removeEventListener('mouseup', this.onMouseUp);
|
||||||
|
},
|
||||||
|
save(){
|
||||||
|
this.$emit('openTaskDelivery',this.info.allValue)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -300,5 +313,80 @@ export default {
|
||||||
line-height: 17px;
|
line-height: 17px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.operation-button-div{
|
||||||
|
display: flex;
|
||||||
|
position: absolute;
|
||||||
|
bottom: -35px;
|
||||||
|
right: 20px;
|
||||||
|
.close-forewarning-button{
|
||||||
|
position: relative;
|
||||||
|
width: 106px;
|
||||||
|
height: 44px;
|
||||||
|
background-image: url('/bigScreen/close_forewarning_button.png');
|
||||||
|
background-size: 100% 100%;
|
||||||
|
margin-right: 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
.button-span{
|
||||||
|
font-family: AlibabaPuHuiTiR;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 17px;
|
||||||
|
line-height: 16px;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
color: #FFFFFF;
|
||||||
|
background: linear-gradient( #EDFFEF,#13D1D8);
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
}
|
||||||
|
.button-span-shadow{
|
||||||
|
font-family: AlibabaPuHuiTiR;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 17px;
|
||||||
|
line-height: 16px;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
color: rgba(0,0,0,0);
|
||||||
|
text-shadow: 0px 1px 16px rgba(19,213,219,0.5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.save-button{
|
||||||
|
width: 106px;
|
||||||
|
height: 44px;
|
||||||
|
background-image: url('/bigScreen/save_forewarning_button.png');
|
||||||
|
background-size: 100% 100%;
|
||||||
|
position: relative;
|
||||||
|
cursor: pointer;
|
||||||
|
.button-span{
|
||||||
|
font-family: AlibabaPuHuiTiR;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 17px;
|
||||||
|
line-height: 16px;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
color: #FFFFFF;
|
||||||
|
background: linear-gradient( #EDFFEF,#79EA86);
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
}
|
||||||
|
.button-span-shadow{
|
||||||
|
font-family: AlibabaPuHuiTiR;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 17px;
|
||||||
|
line-height: 16px;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
color: rgba(0,0,0,0);
|
||||||
|
text-shadow: 0px 1px 16px rgba(5,154,76,0.5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,20 @@
|
||||||
<ResponseResource />
|
<ResponseResource />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<InfoModal v-if="showForewarningModal" :info="forewarningInfo" @closeForewarningModal="closeForewarningModal"/>
|
<InfoModal
|
||||||
|
v-if="showForewarningModal"
|
||||||
|
:info="forewarningInfo"
|
||||||
|
@closeForewarningModal="closeForewarningModal"
|
||||||
|
@openTaskDelivery="openTaskDelivery"/>
|
||||||
|
|
||||||
<SearchComponent :hiddenDiv="leftHidden" @cameraFly="cameraFly"/>
|
<SearchComponent :hiddenDiv="leftHidden" @cameraFly="cameraFly"/>
|
||||||
|
<div
|
||||||
|
class="task"
|
||||||
|
v-if="taskDeliveryShow"
|
||||||
|
@mousedown="onMouseDown"
|
||||||
|
:style="{ right: `${position.x}px`, top: `${position.y}px` }">
|
||||||
|
<taskDelivery @closeTask="closeTask" :lng="tasklng" :lat="tasklat" :description="description"></taskDelivery>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -43,12 +54,13 @@ import InfoModal from './InfoModal/index.vue'
|
||||||
import SearchComponent from './SearchComponent/index.vue'
|
import SearchComponent from './SearchComponent/index.vue'
|
||||||
import Map from "@/components/mars3d/ResourceMap.vue";
|
import Map from "@/components/mars3d/ResourceMap.vue";
|
||||||
import Onlineuserbox from "./OnLineUser/index.vue";
|
import Onlineuserbox from "./OnLineUser/index.vue";
|
||||||
|
import taskDelivery from "@/views/home/widget/taskDelivery.vue";
|
||||||
|
|
||||||
|
|
||||||
const areaName = localStorage.getItem("areaName");
|
const areaName = localStorage.getItem("areaName");
|
||||||
export default {
|
export default {
|
||||||
name: "bigScreen",
|
name: "bigScreen",
|
||||||
components: { Forewarning, Person, Monitor, ResponseResource, Header, InfoModal, SearchComponent, Map,Onlineuserbox},
|
components: { Forewarning, Person, Monitor, ResponseResource, Header, InfoModal, SearchComponent, Map,Onlineuserbox, taskDelivery},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
configUrl: `config/feixianConfig.json`,
|
configUrl: `config/feixianConfig.json`,
|
||||||
|
|
@ -64,9 +76,17 @@ export default {
|
||||||
picture:'',
|
picture:'',
|
||||||
detailed_address: '',
|
detailed_address: '',
|
||||||
start_time: '',
|
start_time: '',
|
||||||
|
allValue: '',
|
||||||
},
|
},
|
||||||
leftHidden: false,
|
leftHidden: false,
|
||||||
rightHidden: false,
|
rightHidden: false,
|
||||||
|
taskDeliveryShow: false,
|
||||||
|
tasklng: '',
|
||||||
|
tasklat: '',
|
||||||
|
description: '',
|
||||||
|
position: { x: 450, y: 300 },
|
||||||
|
isDragging: false,
|
||||||
|
offset: { x: 0, y: 0 },
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -95,6 +115,7 @@ export default {
|
||||||
this.forewarningInfo.video = item.images_path.replaceAll(IPAddress,'221.2.83.254:7011')
|
this.forewarningInfo.video = item.images_path.replaceAll(IPAddress,'221.2.83.254:7011')
|
||||||
this.forewarningInfo.detailed_address = item.detailed_address
|
this.forewarningInfo.detailed_address = item.detailed_address
|
||||||
this.forewarningInfo.start_time = item.start_time
|
this.forewarningInfo.start_time = item.start_time
|
||||||
|
this.forewarningInfo.allValue = item
|
||||||
this.showForewarningModal = true
|
this.showForewarningModal = true
|
||||||
this.cameraFly(item.longitude,item.latitude)
|
this.cameraFly(item.longitude,item.latitude)
|
||||||
},
|
},
|
||||||
|
|
@ -140,6 +161,39 @@ export default {
|
||||||
console.log(url);
|
console.log(url);
|
||||||
return url;
|
return url;
|
||||||
},
|
},
|
||||||
|
closeTask() {
|
||||||
|
this.taskDeliveryShow = false;
|
||||||
|
this.position.x = 450
|
||||||
|
this.position.y = 300
|
||||||
|
this.tasklng = ''
|
||||||
|
this.tasklat = ''
|
||||||
|
this.description = ''
|
||||||
|
},
|
||||||
|
openTaskDelivery(item){
|
||||||
|
this.tasklng = item.longitude
|
||||||
|
this.tasklat = item.latitude
|
||||||
|
this.description = item.detailed_address
|
||||||
|
this.taskDeliveryShow = true
|
||||||
|
},
|
||||||
|
onMouseDown(event) {
|
||||||
|
this.isDragging = true;
|
||||||
|
this.offset.x = -event.clientX - this.position.x;
|
||||||
|
this.offset.y = event.clientY - this.position.y;
|
||||||
|
|
||||||
|
window.addEventListener('mousemove', this.onMouseMove);
|
||||||
|
window.addEventListener('mouseup', this.onMouseUp);
|
||||||
|
},
|
||||||
|
onMouseMove(event) {
|
||||||
|
if (this.isDragging) {
|
||||||
|
this.position.x = -event.clientX - this.offset.x;
|
||||||
|
this.position.y = event.clientY - this.offset.y;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onMouseUp() {
|
||||||
|
this.isDragging = false;
|
||||||
|
window.removeEventListener('mousemove', this.onMouseMove);
|
||||||
|
window.removeEventListener('mouseup', this.onMouseUp);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
|
|
@ -323,5 +377,11 @@ export default {
|
||||||
right: -429px;
|
right: -429px;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
.task {
|
||||||
|
width: 540px;
|
||||||
|
height:480px;
|
||||||
|
position: absolute;
|
||||||
|
z-index:100;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ import { getMethodCommon } from '../../../api/common';
|
||||||
let BASE_URL = process.env.VUE_APP_BASE_API;
|
let BASE_URL = process.env.VUE_APP_BASE_API;
|
||||||
export default {
|
export default {
|
||||||
name: 'taskDelivery',
|
name: 'taskDelivery',
|
||||||
props: ['globalmap', 'lng', 'lat'],
|
props: ['globalmap', 'lng', 'lat', 'description'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
location: '',
|
location: '',
|
||||||
|
|
@ -107,7 +107,10 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
if (this.lat) {
|
if (this.lat) {
|
||||||
this.location = this.lng + "," + this.lat;
|
this.location = this.lng + "," + this.lat;
|
||||||
}
|
}
|
||||||
|
if(this.description){
|
||||||
|
this.content = this.description
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
selectChange(e){
|
selectChange(e){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue