Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
mmc-stl-vue2
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
mmc-stl-vue2
Commits
a502eb9e
提交
a502eb9e
authored
6月 05, 2024
作者:
翁进城
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:
1.【机库】一键任务起飞后,飞行日志没有监控日志且没有机库无人机定位及飞行实时轨迹 2.【机库-健康管理】显示异常,功能未生效 3. 机库列表选中修正
上级
45236902
流水线
#9867
已失败 于阶段
变更
7
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
91 行增加
和
33 行删除
+91
-33
index.vue
...mponents/hangar/components/list/components/item/index.vue
+2
-8
index.vue
...onents/MMCFlightControlCenter/components/hangar/index.vue
+0
-1
linkFusion.js
...lightControlCenter/components/hangar/mixins/linkFusion.js
+19
-7
index.vue
...Panel/components/controlRight/components/health/index.vue
+60
-10
index.vue
...plications/components/player/components/qingliu/index.vue
+2
-2
demo.vue
vue2/src/views/fkzxIframe/demo.vue
+3
-1
vue.config.js
vue2/vue.config.js
+5
-4
没有找到文件。
src/components/MMCFlightControlCenter/components/hangar/components/list/components/item/index.vue
浏览文件 @
a502eb9e
...
...
@@ -33,7 +33,7 @@
>
<el-checkbox
:disabled=
"device.online !== 1"
:value=
"device.isCheck"
:value=
"
hangar && device.hardId === hangar.hardId &&
device.isCheck"
@
change=
"(e) => handClick(e, device)"
></el-checkbox>
</el-tooltip>
...
...
@@ -118,13 +118,7 @@ export default {
},
handClick
(
isCheck
,
device
)
{
console
.
log
(
"checkbox"
,
isCheck
,
device
);
this
.
data
.
nests
.
forEach
((
item
)
=>
{
this
.
$set
(
item
,
"isCheck"
,
false
);
});
if
(
isCheck
)
{
device
.
isCheck
=
true
;
}
device
.
isCheck
=
isCheck
;
// 切换订阅的机库, 需要先取消订阅旧机库, 再重新订阅新机库
this
.
hangar
&&
...
...
src/components/MMCFlightControlCenter/components/hangar/index.vue
浏览文件 @
a502eb9e
...
...
@@ -24,7 +24,6 @@ export default {
},
computed
:
{
...
mapState
(
"MMCFlightControlCenter/hangar"
,
[
"showPanel"
,
"hangar"
]),
...
mapState
(
"MMCFlightControlCenter/uav"
,
[
"uav"
]),
},
beforeDestroy
()
{
this
.
$store
.
commit
(
'MMCFlightControlCenter/setState'
,
{
...
...
src/components/MMCFlightControlCenter/components/hangar/mixins/linkFusion.js
浏览文件 @
a502eb9e
import
{
mapState
}
from
'vuex'
;
// 无人机实时数据各链路融合
export
default
{
computed
:
{
...
mapState
(
"MMCFlightControlCenter/hangar"
,
[
"hangar"
]),
...
mapState
(
"MMCFlightControlCenter/uav"
,
[
"uav"
]),
// mqtt实时数据
mqttDataSet
()
{
mqttDataSet
Hangar
()
{
return
this
.
$store
.
state
.
MMCMQTT
?.
dataSet
?.[
this
.
hangar
?.
hardId
];
},
mqttDataSetUav
()
{
return
this
.
$store
.
state
.
MMCMQTT
?.
dataSet
?.[
this
.
uav
?.
hardId
];
},
mqttUrl
()
{
return
this
.
$store
.
getters
[
"MMCFlightControlCenter/mqttUrl"
];
},
},
watch
:
{
mqttDataSet
(
newVal
)
{
mqttDataSet
Hangar
(
newVal
)
{
if
(
newVal
)
{
this
.
$store
.
dispatch
(
"MMCFlightControlCenter/hangar/updateByMQTT"
,
...
...
@@ -18,6 +25,11 @@ export default {
);
}
},
mqttDataSetUav
(
newVal
)
{
if
(
newVal
)
{
this
.
$store
.
dispatch
(
"MMCFlightControlCenter/uav/updateByMQTT"
,
newVal
);
}
},
},
async
mounted
()
{
// 启动mqtt服务
...
...
@@ -33,15 +45,15 @@ export default {
console
.
log
(
"mqtt失败"
,
e
);
}
},
beforeDestroy
(){
console
.
log
(
'断开mqtt连接'
);
beforeDestroy
()
{
console
.
log
(
"断开mqtt连接"
);
if
(
this
.
uav
)
{
this
.
$store
.
dispatch
(
"MMCFlightControlCenter/uav/unsubscribe"
);
}
if
(
this
.
hangar
)
{
this
.
$store
.
dispatch
(
"MMCFlightControlCenter/hangar/unsubscribe"
);
}
this
.
$store
.
dispatch
(
'MMCFlightControlCenter/uav/end'
);
}
this
.
$store
.
dispatch
(
"MMCFlightControlCenter/uav/end"
);
}
,
};
src/components/MMCFlightControlCenter/components/uavApplications/components/controlPanel/components/controlRight/components/health/index.vue
浏览文件 @
a502eb9e
...
...
@@ -11,7 +11,12 @@
<div
class=
"nset_control_box_area"
>
<div
class=
"wrj"
>
<div
class=
"w97 h110 item"
v-if=
"healthData.BAT"
>
<img
src=
"./assets/images/info.png"
alt
@
click=
"infoDetail('智能电池','BAT')"
style=
"cursor: pointer;"
/>
<img
src=
"./assets/images/info.png"
alt
@
click=
"infoDetail('智能电池','BAT')"
style=
"cursor: pointer;"
/>
<div
class=
"iconfont icon-chuli"
style=
"color: #ffe417;"
...
...
@@ -28,7 +33,12 @@
<div
class=
"type"
v-else
>
正常
</div>
</div>
<div
class=
"w97 h110 item cp"
v-if=
"healthData.RTK"
>
<img
src=
"./assets/images/info.png"
alt
@
click=
"infoDetail('RTK','RTK')"
style=
"cursor: pointer;"
/>
<img
src=
"./assets/images/info.png"
alt
@
click=
"infoDetail('RTK','RTK')"
style=
"cursor: pointer;"
/>
<div
class=
"iconfont icon-chuli"
style=
"color: #ffe417;"
...
...
@@ -45,7 +55,12 @@
<div
class=
"type"
v-else
>
正常
</div>
</div>
<div
class=
"w97 h110 item cp"
v-if=
"healthData.GPS"
>
<img
src=
"./assets/images/info.png"
alt
@
click=
"infoDetail('GPS','GPS')"
style=
"cursor: pointer;"
/>
<img
src=
"./assets/images/info.png"
alt
@
click=
"infoDetail('GPS','GPS')"
style=
"cursor: pointer;"
/>
<div
class=
"iconfont icon-chuli"
style=
"color: #ffe417;"
...
...
@@ -62,7 +77,12 @@
<div
class=
"type"
v-else
>
正常
</div>
</div>
<div
class=
"w97 h110 item cp"
v-if=
"healthData.OBS"
>
<img
src=
"./assets/images/info.png"
alt
@
click=
"infoDetail('避障','OBS')"
style=
"cursor: pointer;"
/>
<img
src=
"./assets/images/info.png"
alt
@
click=
"infoDetail('避障','OBS')"
style=
"cursor: pointer;"
/>
<div
class=
"iconfont icon-chuli"
style=
"color: #ffe417;"
...
...
@@ -80,7 +100,12 @@
<div
class=
"type"
v-else
>
正常
</div>
</div>
<div
class=
"w97 h110 item cp"
v-if=
"healthData.VPN"
>
<img
src=
"./assets/images/info.png"
alt
@
click=
"infoDetail('公网','VPN')"
style=
"cursor: pointer;"
/>
<img
src=
"./assets/images/info.png"
alt
@
click=
"infoDetail('公网','VPN')"
style=
"cursor: pointer;"
/>
<div
class=
"iconfont icon-chuli"
style=
"color: #ffe417;"
...
...
@@ -97,7 +122,12 @@
<div
class=
"type"
v-else
>
正常
</div>
</div>
<div
class=
"w97 h110 item cp"
v-if=
"healthData.SPE"
>
<img
src=
"./assets/images/info.png"
alt
@
click=
"infoDetail('专网','SPE')"
style=
"cursor: pointer;"
/>
<img
src=
"./assets/images/info.png"
alt
@
click=
"infoDetail('专网','SPE')"
style=
"cursor: pointer;"
/>
<div
class=
"iconfont icon-chuli"
style=
"color: #ffe417;"
...
...
@@ -114,7 +144,12 @@
<div
class=
"type"
v-else
>
正常
</div>
</div>
<div
class=
"w97 h110 item cp"
v-if=
"healthData.CHUTE"
>
<img
src=
"./assets/images/info.png"
alt
@
click=
"infoDetail('降落伞','CHUTE')"
style=
"cursor: pointer;"
/>
<img
src=
"./assets/images/info.png"
alt
@
click=
"infoDetail('降落伞','CHUTE')"
style=
"cursor: pointer;"
/>
<div
class=
"iconfont icon-chuli"
style=
"color: #ffe417;"
...
...
@@ -136,7 +171,12 @@
<div
class=
"type"
v-else
>
正常
</div>
</div>
<div
class=
"w97 h110 item cp"
v-if=
"healthData.SPEAK"
>
<img
src=
"./assets/images/info.png"
alt
@
click=
"infoDetail('喊话器','SPEAK')"
style=
"cursor: pointer;"
/>
<img
src=
"./assets/images/info.png"
alt
@
click=
"infoDetail('喊话器','SPEAK')"
style=
"cursor: pointer;"
/>
<div
class=
"iconfont icon-chuli"
style=
"color: #ffe417;"
...
...
@@ -156,7 +196,12 @@
<div
class=
"type"
v-else
>
正常
</div>
</div>
<div
class=
"w97 h110 item cp"
v-if=
"healthData.NX"
>
<img
src=
"./assets/images/info.png"
alt
@
click=
"infoDetail('NX','NX')"
style=
"cursor: pointer;"
/>
<img
src=
"./assets/images/info.png"
alt
@
click=
"infoDetail('NX','NX')"
style=
"cursor: pointer;"
/>
<div
class=
"iconfont icon-chuli"
style=
"color: #ffe417;"
...
...
@@ -303,7 +348,9 @@
</div>
<div
class=
"item"
>
<div
class=
"title"
>
是否触发:
</div>
<div
class=
"inpublic"
>
{{
uavRealTimeData
.
obstacles
&&
uavRealTimeData
.
obstacles
.
enable
?
'触发避障'
:
'未触发'
}}
</div>
<div
class=
"inpublic"
>
{{
uavRealTimeData
.
obstacles
&&
uavRealTimeData
.
obstacles
.
enable
?
'触发避障'
:
'未触发'
}}
</div>
</div>
</div>
<div
class=
"pr"
>
...
...
@@ -619,6 +666,9 @@ export default {
color
:
#fff
;
border-radius
:
0
0
4.5px
4.5px
;
}
.iconfont
{
margin-top
:
8px
;
}
}
.item
:nth-of-type
(
4n
)
{
margin-right
:
0
;
...
...
src/components/MMCFlightControlCenter/components/uavApplications/components/player/components/qingliu/index.vue
浏览文件 @
a502eb9e
...
...
@@ -187,13 +187,13 @@ export default {
// 监听窗口大小变化事件
window
.
addEventListener
(
"resize"
,
this
.
handResize
);
var
canvas_qinliu
=
document
.
getElementById
(
"qingliu_"
+
this
.
name
);
/*
var canvas_qinliu = document.getElementById("qingliu_" + this.name);
var resizeObserver = new ResizeObserver((e) => {
for (let i of e) {
window.kbt_player_resize("qingliu_" + this.name);
}
});
resizeObserver
.
observe
(
canvas_qinliu
);
resizeObserver.observe(canvas_qinliu);
*/
// 旧
// window.kbt_player_destroy(this.name);
// setTimeout(() => {}, 1500);
...
...
vue2/src/views/fkzxIframe/demo.vue
浏览文件 @
a502eb9e
...
...
@@ -24,11 +24,13 @@
</el-form>
<!-- http://localhost:9000/ -->
<!-- https://ctn.mmcuav.cn/tmj_fkzx -->
<!-- https://tmj.mmcuav.cn -->
<iframe
id=
"iframe"
ref=
"iframe"
src=
"http://localhost:9000/"
src=
"http
s
://localhost:9000/"
style=
"width: 1920px; height: 1000px;"
anonymous
></iframe>
</div>
</
template
>
...
...
vue2/vue.config.js
浏览文件 @
a502eb9e
...
...
@@ -15,14 +15,15 @@ module.exports = defineConfig({
],
},
devServer
:
{
https
:
fals
e
,
https
:
tru
e
,
client
:
{
overlay
:
false
,
},
/*
headers: {
"Cross-Origin-Opener-Policy": "
cross
-origin",
headers
:
{
"Cross-Origin-Opener-Policy"
:
"
same
-origin"
,
"Cross-Origin-Embedder-Policy"
:
"require-corp"
,
}, */
"Cross-Origin-Resource-Policy"
:
"cross-origin"
,
},
proxy
:
{
"/crm"
:
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论