Bläddra i källkod

合并代码冲突

tags/v1.0.0^2
余菲 2 år sedan
förälder
incheckning
c8399ca58a
6 ändrade filer med 20 tillägg och 15 borttagningar
  1. Binär
      src/assets/images/no-task.png
  2. +3
    -3
      src/views/dashboard/components/AirCard.vue
  3. +8
    -5
      src/views/dashboard/components/TaskCard.vue
  4. +4
    -2
      src/views/dashboard/components/VideoCard.vue
  5. +2
    -2
      src/views/report-manage/all-report/components/ReportDrawer.vue
  6. +3
    -3
      src/views/task-manage/all-task/components/DemandDrawer.vue

Binär
src/assets/images/no-task.png Visa fil

Before After
Width: 116  |  Height: 86  |  Size: 4.9KB

+ 3
- 3
src/views/dashboard/components/AirCard.vue Visa fil

@@ -29,7 +29,7 @@
<div class="video__item">
<div class="item__weather">
<ul>
<li v-for="(item,index) in weatherList" :key="index">{{ item.label }}:{{ item.value }}</li>
<li v-for="(item,index) in weatherList" :key="index">&nbsp;{{ item.label }}:&nbsp;{{ item.value }}&nbsp;</li>
</ul>
</div>
<!-- <VideoPlayer :options="getVideoOptions.outer" /> -->
@@ -85,8 +85,8 @@ export default {
const parm = res.data.wth?.parm || []
data.weatherList = parm.length !== 0 ? [
// { label: '天气', value: '' },
{ label: '气温', value: parm.tmp + '℃' },
{ label: '湿度', value: parm.hum + 'RH' },
{ label: '气温', value: (parm.tmp / 10) + '℃' },
{ label: '湿度', value: (parm.hum / 10) + 'RH' },
{ label: '风度', value: parm.wspd + 'm/s' },
{ label: '风向', value: parm.wdir }
] : []

+ 8
- 5
src/views/dashboard/components/TaskCard.vue Visa fil

@@ -4,16 +4,17 @@
<p class="card__title--left">待飞行任务</p>
<p class="card__title--right" @click="handlePreviewMore">查看更多<SvgIcon icon-class="arrow" /></p>
</div>
<div>
<div class="card__table">
<n-data-table
:bordered="false"
:single-column="true"
:columns="columns"
:data="tableData"
:pagination="false"
:max-heght="350"
>
<template #empty>
无数据
<img src="@/assets/images/no-task.png" alt="">
</template>
</n-data-table>
</div>
@@ -46,7 +47,7 @@ export default {
},
{
title: '创建人',
key: 'inspectionType',
key: 'createUser',
align: 'center'
}
]
@@ -58,7 +59,7 @@ export default {
* @return {*}
*/
const loadDataTable = (async function() {
const res = await getTaskList({ page: 1, limit: 6 })
const res = await getTaskList({ page: 1, limit: 6, status: 1 })
if (res.code === 0) {
data.tableData = res.data.records
}
@@ -102,7 +103,9 @@ export default {
}
}
}

.card__table{
height: calc(100% - 40px);
}
::v-deep(.n-data-table){
.n-data-table-tr{
.n-data-table-th{

+ 4
- 2
src/views/dashboard/components/VideoCard.vue Visa fil

@@ -91,6 +91,7 @@ export default {
function handleAirportChange(value) {
if (value === data.airportIdBack) return
data.airportIdBack = value
data.videoForm.taskId = null
missionLive(value)
.then(res => {
if (res.code === 0) {
@@ -105,12 +106,13 @@ export default {
}

function handleVideoChange(value) {
const row = data.taskOptions.find((item) => { return item.id === value })
if (!value) {
data.liveUrl = { ...data.airportUrl }
} else {
data.liveUrl = {
origin: 'http://101.43.84.72:8080/live/34020000001320000001@34020000001320000001.flv',
analyse: 'http://101.43.84.72:8080/live/34020000001320000001@34020000001320000001.flv'
origin: row.videoUrl,
analyse: row.aiVideoUrl
}
}
}

+ 2
- 2
src/views/report-manage/all-report/components/ReportDrawer.vue Visa fil

@@ -11,7 +11,7 @@
<n-gi><span>林场名称</span></n-gi>
<n-gi><span>{{ reportDetail.lcName }}</span></n-gi>
<n-gi><span>巡查里程</span></n-gi>
<n-gi><span>{{ reportDetail?.mission?.mileage/1000 }}公里</span></n-gi>
<n-gi><span>{{ reportDetail?.mission?.mileage / 1000 }}公里</span></n-gi>
</n-grid>
</div>
</div>
@@ -20,7 +20,7 @@
<div>
<n-grid :cols="2">
<n-gi><span>气象信息</span></n-gi>
<n-gi><span v-for="(item,index) in weatherList" :key="index">&nbsp;{{ item.label }}: {{ item.value }}&nbsp;</span></n-gi>
<n-gi><span v-for="(item,index) in weatherList" :key="index">&nbsp;{{ item.label }}:&nbsp;{{ item.value }}&nbsp;</span></n-gi>
<n-gi><span>巡检方式</span></n-gi>
<n-gi><span>{{ reportDetail.lcName }}</span></n-gi>
<n-gi><span>巡检设备</span></n-gi>

+ 3
- 3
src/views/task-manage/all-task/components/DemandDrawer.vue Visa fil

@@ -41,7 +41,7 @@
</template>

<script>
import { defineComponent, computed, reactive, toRefs, ref, watch } from 'vue'
import { defineComponent, computed, reactive, toRefs, ref, watch, nextTick } from 'vue'
import { Map, View, Feature } from 'ol'
import 'ol/ol.css'
import { Tile, Vector as VectorLayer } from 'ol/layer'
@@ -185,7 +185,7 @@ export default defineComponent({
}
const len = Math.abs(params.currentTime - data.aiVideoInfo.currentTime)
if ((params.status === 'skip' || len > 3) && data.canSkip) {
aiVideoRef.value.seekTime(params.currentTime + 0.1)
aiVideoRef.value?.seekTime(params.currentTime + 0.1)
data.canSkip = false
setTimeout(() => {
data.canSkip = true
@@ -198,7 +198,7 @@ export default defineComponent({
}
const len = Math.abs(params.currentTime - data.videoInfo.currentTime)
if ((params.status === 'skip' || len > 3) && data.canSkip) {
videoRef.value.seekTime(params.currentTime + 0.1)
videoRef.value?.seekTime(params.currentTime + 0.1)
data.canSkip = false
setTimeout(() => {
data.canSkip = true

Laddar…
Avbryt
Spara