提交添加战术计算、添加头部设置

This commit is contained in:
zh
2025-10-21 16:20:22 +08:00
parent d447f23376
commit ce3c39031d
215 changed files with 11960 additions and 24090 deletions

View File

@ -256,6 +256,8 @@
<excelSet ref="excelSet" class="excelSetBox absolute zIndex99"></excelSet>
<!-- tufu_select -->
<tufuSelect style="top: 115px;right: 50px;" class="tufuSelect absolute zIndex99"></tufuSelect>
<!-- 战术计算 -->
<tactical class="tacticalBox absolute"></tactical>
<!-- modelSet -->
<ModelSet class="ModelSetBox absolute"></ModelSet>
</div>
@ -304,6 +306,7 @@ import adddirectory from "../../components/dialog/adddirectory.vue";
import excelSet from "@/components/dialog/excelSet.vue";
import eventEditor from "@/components/TS/eventEditor/index.vue";
import tufuSelect from "@/components/dialog/tufu_select.vue";
import tactical from "@/components/dialog/tactical.vue";
import {
getSelectedNode,
getNodeData,
@ -375,6 +378,7 @@ export default {
// WangEditor
excelSet,
tufuSelect,
tactical,
ModelSet,
modelg
},
@ -1104,6 +1108,7 @@ export default {
.adddirectoryBox,
.excelSetBox,
.tufuSelect,
.tacticalBox,
.ModelSetBox,
.modelBoxg{
display: none;

View File

@ -217,7 +217,7 @@ import { ipcRenderer, remote } from "electron";
import { isvalidUsername } from "@/utils/validate";
import { getIP, setIP, setLocal, getLocal } from "../../utils";
import { validateURL } from "../../utils/validate";
import { checkAuth, service_progress } from "@/api/gisAPI";
import { checkAuth, service_progress, getHeaderList, selectHeader } from "@/api/gisAPI";
import { login } from "@/api/air.js";
import { getGpsList, updateGps } from "../../api/gisAPI";
import websocket from "../../utils/websocket";
@ -573,6 +573,7 @@ export default {
.then(() => {
this.$message.success("登录成功");
setLocal("username", JSON.stringify(this.loginForm.username));
this.getHeader()
this.rememberPassword();
// 无人机
setTimeout(() => {
@ -689,6 +690,46 @@ export default {
});
});
},
// 获取Header图片
getHeader() {
try {
getHeaderList({
page: 1,
pageSize: 99999,
}).then(res => {
if (res.code == 0 || res.code == 200) {
let headerList = res.data.list
let flag = false
for (let i = 0; i < headerList.length; i++) {
if (headerList[i].selected) {
flag = true
localStorage.setItem("header", JSON.stringify(headerList[i]))
this.$sendChanel("header", headerList[i])
break
}
}
if(!flag && headerList && headerList.length>0) {
localStorage.setItem("header", JSON.stringify(headerList[0]))
this.$sendChanel("header")
selectHeader({
id: headerList[0].id
}).then(res => {
if (res.code == 0 || res.code == 200) {
}
})
}
}
else {
localStorage.setItem("header", JSON.stringify({}))
this.$sendChanel("header")
}
})
} catch (error) {
localStorage.setItem("header", JSON.stringify({}))
this.$sendChanel("header")
}
},
},
};
</script>