Pārlūkot izejas kodu

Merge branch 'develop' of gitadmin/tuoheng_lc_web into release

tags/v1.1.0^2
zhangtao pirms 1 gada
vecāks
revīzija
4721405d26
2 mainītis faili ar 160 papildinājumiem un 190 dzēšanām
  1. +18
    -8
      src/views/dashboard/components/AirInfo.vue
  2. +142
    -182
      src/views/dashboard/components/OneMap.vue

+ 18
- 8
src/views/dashboard/components/AirInfo.vue Parādīt failu

@@ -29,7 +29,7 @@
<div class="monitorList">
<div class="innerMonitor">
<div class="monitorName">机场内部监控</div>
<img src="../../../assets/images/webScreen.png" @click="videoShowStyle">
<!-- <img src="../../../assets/images/webScreen.png" @click="videoShowStyle"> -->
<videoPlay
v-bind="innerMonitorOptions"
style="z-index:1"
@@ -37,7 +37,7 @@
</div>
<div class="innerMonitor">
<div class="monitorName">机场外部监控</div>
<img src="../../../assets/images/webScreen.png" @click="outerVideoShowStyle">
<!-- <img src="../../../assets/images/webScreen.png" @click="outerVideoShowStyle"> -->
<videoPlay
v-bind="outsideMonitorOptions"
style="z-index:1"
@@ -75,17 +75,25 @@ export default {
innerMonitorOptions: {
width: '256px',
height: '198px',
controls: false,
src: '',
webFullScreen: false
control: true, // 是否显示控制
controlBtns: [

'fullScreen'
], // 显示所有按钮,

src: ''

},
outsideMonitorOptions: {
width: '256px',
height: '198px',
controls: false,
src: '',
webFullScreen: false
control: true, // 是否显示控制
controlBtns: [

'fullScreen'
], // 显示所有按钮,
src: ''

}

})
@@ -126,6 +134,8 @@ export default {
})
const videoShowStyle = () => {
data.innerMonitorOptions.webFullScreen = !data.innerMonitorOptions.webFullScreen
// data.innerMonitorOptions.width = '500px'
// data.innerMonitorOptions.webFullScreen = true
}
const outerVideoShowStyle = () => {
data.outsideMonitorOptions.webFullScreen = !data.outsideMonitorOptions.webFullScreen

+ 142
- 182
src/views/dashboard/components/OneMap.vue Parādīt failu

@@ -1,198 +1,151 @@
<template>
<div class="container">
<div
class="map-container"
:="getMapOptions"
/>
<!-- <div class="layer-management">
<div class="list-manage">
<p>列表</p>
<n-switch v-model:value="listShow" />
</div>
<div class="air-manage">
<p>机场</p>
<n-switch v-model:value="airShow"
@update:value="airShowHide" />
</div>
</div> -->
<div

id="airOverlay"
class="airport-overlay"
>
<span
id="closeAir"
class="close-overlay"
@click="hideAirInfo"
>x</span>
<air-info :data="airDetail" />
</div>
<div
<div
class="map-container"
:="getMapOptions"
/>

<div

id="airOverlay"
class="airport-overlay"
>
<span
id="closeAir"
class="close-overlay"
@click="hideAirInfo"
>x</span>
<air-info :data="airDetail" />
</div>
<div

v-show="problemPopupShow"
id="problemOverlay"
class="problem-overlay"
>
<span
class="close-overlay"
@click="hideProblemInfo"
>x</span>
<problem-info :detail="problemDetail" />
</div>

id="problemOverlay"
class="problem-overlay"
>
<div
v-show="listChecked"
class="menu"
>
<div class="tabBar">
<span
class="close-overlay"
@click="hideProblemInfo"
>x</span>
<problem-info :detail="problemDetail" />
:class="[tabIndex==1?'checkedColor':'uncheckedColor']"
style="margin-right:97px"
@click="showTask"
>任务</span>
<span
:class="[tabIndex==1?'uncheckedColor':'checkedColor']"
@click="showProblem"
>问题</span>
</div>
<div
v-show="false"
class="task-question"
v-if="tabIndex==1"
class="listDetail"
>
<n-card style="margin-bottom: 16px">
<n-tabs
type="line"
animated
<ul>
<li
v-for="(item,index) in taskList"
:key="index"
style="display:flex;font-size:14px"
>
<!-- <n-tab-pane name="task" tab="任务">
任务
</n-tab-pane> -->
<n-tab-pane
name="question"
tab="问题"
<div style="width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{ item.date }}&nbsp;&nbsp;{{ item.taskName }}</div>
<div style="width:42px">{{ item.statusInfo }}</div>

<n-popconfirm
v-if="item.status==1"
@positive-click="handlePositiveClick(item)"
@negative-click="handleNegativeClick"
>
<n-date-picker
:on-update:formatted-value="abc"
:default-formatted-value="efg"
type="daterange"
:default-value="[Date.now() - 6.048e8, Date.now()]"
:is-date-disabled="disablePreviousDate"
/>
<!-- <n-checkbox-group :value="cities" @update:value="handleUpdateValue">
<n-space style="display: block;">
<n-checkbox value="Beijing" label="北京" />
<n-checkbox value="Shanghai" label="上海" />
<n-checkbox value="Guangzhou" label="广州" />
<n-checkbox value="Shenzen" label="深圳" />
</n-space>
</n-checkbox-group> -->
</n-tab-pane>
</n-tabs>
</n-card>
<template #trigger>
<span style="color:#22D33D">立即执行</span>
</template>
是否立即开始执行任务?
</n-popconfirm>
<div
v-else
style="color:#1890FF"
@click="liveShow(item)"
>直播</div>
</li>

</ul>
<n-pagination
v-model:page="page"
:page-count="pageCount"
:page-slot="7"
style="color:#FFFFFF;position:absolute;bottom:10px;left:10px"
/>
</div>
<div
v-show="listChecked"
class="menu"
v-else
class="listDetail"
>
<div class="tabBar">
<span
:class="[tabIndex==1?'checkedColor':'uncheckedColor']"
style="margin-right:97px"
@click="showTask"
>任务</span>
<span
:class="[tabIndex==1?'uncheckedColor':'checkedColor']"
@click="showProblem"
>问题</span>
</div>
<div
v-if="tabIndex==1"
class="listDetail"
<n-date-picker
:on-update:formatted-value="abc"
:default-formatted-value="efg"
type="daterange"
:default-value="[Date.now() - 6.048e8, Date.now()]"
:is-date-disabled="disablePreviousDate"
style="margin-bottom:15px"
/>
<!-- 多选框 -->
<n-checkbox-group
v-model:value="problemTypeSelected"
@update:value="handleProblemTypeValue"
>
<ul>
<li
v-for="(item,index) in taskList"
:key="index"
style="display:flex;font-size:14px"
>
<div style="width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{ item.taskName }}</div>
<div style="42px">{{ item.statusInfo }}</div>
<!-- <div v-if="item.status==1"
@click="performTask(item)">立即执行</div> -->
<!-- <n-button v-if="item.status==1"
@click="handleConfirm">立即执行</n-button> -->
<n-popconfirm
v-if="item.status==1"
@positive-click="handlePositiveClick(item)"
@negative-click="handleNegativeClick"
>
<template #trigger>
<span style="color:#22D33D">立即执行</span>
</template>
是否立即开始执行任务?
</n-popconfirm>
<div
v-else
style="color:#1890FF"
@click="liveShow(item)"
>直播</div>
</li>

</ul>
<n-pagination
v-model:page="page"
:page-count="pageCount"
:page-slot="7"
style="color:#FFFFFF;position:absolute;bottom:10px;left:10px"
/>
</div>
<div
v-else
class="listDetail"
>
<n-date-picker
:on-update:formatted-value="abc"
:default-formatted-value="efg"
type="daterange"
:default-value="[Date.now() - 6.048e8, Date.now()]"
:is-date-disabled="disablePreviousDate"
style="margin-bottom:15px"
/>
<!-- 多选框 -->
<n-checkbox-group
v-model:value="problemTypeSelected"
@update:value="handleProblemTypeValue"
<div
v-for="(item,index) in problemTypeList"
:key="index"
>
<div
v-for="(item,index) in problemTypeList"
:key="index"
>
<n-checkbox
:value="item.content"
:label="item.content"
style="color:#FFFFFF"
/>
</div>
<n-checkbox
:value="item.content"
:label="item.content"
style="color:#FFFFFF"
/>
</div>

</n-checkbox-group>
</n-checkbox-group>

</div>
</div>
<div class="menuControl">
<div
style="border-bottom:1px solid rgba(1122,112,112,0.65)"
class="item"
>
<div @click="showList">
<img
v-if="listChecked==true"
src="../../../assets/images/listChecked.png"
>
<img
v-else
src="../../../assets/images/listUnchecked.png"
>
</div>

<span :style="{'color':listChecked?'#1890FF':'#666666'}">列表</span>
</div>
<div class="menuControl">
<div
style="border-bottom:1px solid rgba(1122,112,112,0.65)"
class="item"
>
<div @click="showList">
<img
v-if="listChecked==true"
src="../../../assets/images/listChecked.png"
>
<img
v-else
src="../../../assets/images/listUnchecked.png"
>
</div>
<div class="item">
<div @click="showAirportList">
<img
v-if="airportSelected==true"
src="../../../assets/images/airportChecked.png"
>
<img
v-else
src="../../../assets/images/airportUnchecked.png"
>
</div>

<span :style="{'color':airportSelected?'#1890FF':'#666666'}">机场</span>
<span :style="{'color':listChecked?'#1890FF':'#666666'}">列表</span>
</div>
<div class="item">
<div @click="showAirportList">
<img
v-if="airportSelected==true"
src="../../../assets/images/airportChecked.png"
>
<img
v-else
src="../../../assets/images/airportUnchecked.png"
>
</div>

<span :style="{'color':airportSelected?'#1890FF':'#666666'}">机场</span>
</div>
</div>

@@ -622,14 +575,16 @@ export default {
const initTaskList = () => {
getMissionList({
page: data.page,
limit: 12
limit: 8
}).then(res => {
if (res.code === 0) {
data.taskList = res.data.records
data.pageCount = res.data.pages
// console.log(data.pageCount, '页数')
data.taskList.map((item) => {
const arr = item.executionStartTime.split(/[ ]+/)// 以空格分开
item.taskName = arr[0] + item.name
item.date = arr[0]
item.taskName = item.name
switch (item.status) {
case 1:
item.statusInfo = '待执行'
@@ -762,12 +717,17 @@ export default {
.container{
width:100vw;
height:100vh;
position:relative;

position:relative;
overflow:hidden;
}
.map-container {
width: 100%;
height:100%;
position:absolute;
top:0px;
left:0px;
right:0px;
bottom:0px;

}

.layer-management {
@@ -853,8 +813,8 @@ export default {
li {
display: flex;
justify-content: space-between;
padding: 8px 2px;
margin-bottom: 15px;
padding: 5px 2px;
margin-bottom: 10px;
}
}
}

Notiek ielāde…
Atcelt
Saglabāt