更新
This commit is contained in:
1871
src/renderer/components/LeftMenu/secondMenuFun copy.js
Normal file
1871
src/renderer/components/LeftMenu/secondMenuFun copy.js
Normal file
File diff suppressed because it is too large
Load Diff
@ -100,6 +100,7 @@ let get_detail_text = (DetailOption) => {
|
||||
// },
|
||||
// near: 2000,
|
||||
// far: 100000,s
|
||||
color: "rgba(255,0,0,1)",
|
||||
speed: 0,
|
||||
positions: DetailOption.positions,
|
||||
};
|
||||
@ -118,6 +119,7 @@ let get_detail_text2 = (DetailOption) => {
|
||||
// near: 2000,
|
||||
// far: 100000,
|
||||
speed: 0,
|
||||
color: "rgba(255,0,0,1)",
|
||||
positions: DetailOption.positions,
|
||||
};
|
||||
return detail;
|
||||
@ -134,7 +136,7 @@ let get_detail_ellipse = (DetailOption) => {
|
||||
center: DetailOption.center,
|
||||
semiMajorAxis: DetailOption.semiMajorAxis,
|
||||
semiMinorAxis: DetailOption.semiMinorAxis,
|
||||
color: "rgba(255,0,0,0.5)",
|
||||
color: "rgba(255,0,0,1)",
|
||||
};
|
||||
return detail;
|
||||
};
|
||||
@ -150,7 +152,7 @@ let get_detail_sector = (DetailOption) => {
|
||||
center: DetailOption.center,
|
||||
startAngle: DetailOption.startAngle,
|
||||
endAngle: DetailOption.endAngle,
|
||||
color: 'rgba(255,0,0,0.5)',
|
||||
color: 'rgba(255,0,0,1)',
|
||||
};
|
||||
return detail;
|
||||
};
|
||||
|
||||
@ -166,6 +166,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
addMarker(option) {
|
||||
let bioahui_id = "2e46e3da8b72d5242e5898170a229ad7"
|
||||
if (window.checkAuthIsValid) {
|
||||
if (option.source_name == "锁定") {
|
||||
if (YJ.Global.Lock.status()) {
|
||||
@ -258,6 +259,7 @@ export default {
|
||||
addSource(node).then((res) => {
|
||||
if ([0, 200].includes(res.code)) {
|
||||
cusRenderNode(DbOption);
|
||||
// DbOption.p_id
|
||||
cusAddNodes(this.treeObj, DbOption.p_id, [node]);
|
||||
}
|
||||
});
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<div class="boxBody">
|
||||
<div style="display: flex;margin-bottom: 10px;">
|
||||
<el-input size="small" style="width: 100%;" placeholder="输入关键字进行过滤" @input="searchContent"
|
||||
v-model="filterText">
|
||||
v-model="filterText" prefix-icon="el-icon-search">
|
||||
</el-input>
|
||||
<!--<el-button type="primary" @click="searchContent('type')" size="small">搜类型</el-button>-->
|
||||
<!--<el-button type="primary" @click="searchContent('junbiao')" size="small">搜军标</el-button>-->
|
||||
@ -262,6 +262,8 @@ export default {
|
||||
|
||||
handleClick() { },
|
||||
selectImg({ key, url, name }) {
|
||||
// 军标库图层
|
||||
let jun_biao_id = "3579e514a976c9aad03fde6b6198f464";
|
||||
//jun_biao_id: "67bee03d6370434d7e98bcda940e67e7"
|
||||
// name: "a常用new_37 (23)"
|
||||
// p_id: "8277e0910d750195b448797616e091ad"
|
||||
@ -309,7 +311,8 @@ export default {
|
||||
addSource(node).then((res) => {
|
||||
if ([0, 200].includes(res.code)) {
|
||||
cusRenderNode(DbOption);
|
||||
cusAddNodes(this.treeObj, DbOption.p_id, [node]);
|
||||
// DbOption.p_id
|
||||
cusAddNodes(this.treeObj, jun_biao_id, [node]);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -120,6 +120,7 @@ export default {
|
||||
handleClick() {
|
||||
},
|
||||
selectImg({ key, url, name, glbUrl }) {
|
||||
let jun_biao_id = "03826cc9d84e13cb404745ebd5b3963e"
|
||||
console.log('glbUrlglbUrlglbUrl', glbUrl);
|
||||
//jun_biao_id: "67bee03d6370434d7e98bcda940e67e7"
|
||||
// name: "a常用new_37 (23)"
|
||||
@ -167,7 +168,8 @@ export default {
|
||||
addSource(node).then((res) => {
|
||||
if ([0, 200].includes(res.code)) {
|
||||
// cusRenderNode(DbOption)
|
||||
cusAddNodes(this.treeObj, DbOption.p_id, [node])
|
||||
// DbOption.p_id
|
||||
cusAddNodes(this.treeObj,jun_biao_id, [node])
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -137,11 +137,11 @@ export default {
|
||||
detailOption.url = model.model_id + ".glb";
|
||||
let node = getNodeData(DbOption, detailOption);
|
||||
console.log(node);
|
||||
|
||||
let model_id = "43d570f69514904a91b5df9c5f33bc98"
|
||||
addSource(node).then((res) => {
|
||||
if ([0, 200].includes(res.code)) {
|
||||
// cusRenderNode(DbOption)
|
||||
cusAddNodes(this.treeObj, DbOption.p_id, [node]);
|
||||
// cusRenderNode(DbOption) DbOption.p_id
|
||||
cusAddNodes(this.treeObj, model_id, [node]);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -153,11 +153,11 @@ export default {
|
||||
locate(item) {
|
||||
window.clicknum++
|
||||
// 获取 localStorage.setItem("gpsCom", this.gpsVal);
|
||||
let gpsCom = localStorage.getItem("gpsCom");
|
||||
if (!gpsCom) {
|
||||
this.$message.warning("请先设置串口");
|
||||
return;
|
||||
}
|
||||
// let gpsCom = localStorage.getItem("gpsCom");
|
||||
// if (!gpsCom) {
|
||||
// this.$message.warning("请先设置串口");
|
||||
// return;
|
||||
// }
|
||||
if (window.clicknum == 1) {
|
||||
this.clickTimer = setTimeout(() => {
|
||||
let host = new URL(getIP()).host;
|
||||
|
||||
@ -974,18 +974,6 @@ export default {
|
||||
console.log(err);
|
||||
this.$sendChanel("updatePosterComplete", err);
|
||||
});
|
||||
// (res) => {
|
||||
// console.log(123321321321, res);
|
||||
// // if (res.code == 0) {
|
||||
// // console.log(123, that.selectModel);
|
||||
// row.poster_url = "";
|
||||
// this.$nextTick(() => {
|
||||
// row.poster_url = res.url + "?" + Math.random();
|
||||
// });
|
||||
// this.$sendChanel("updatePosterComplete", res);
|
||||
// // that.selectModel(row);
|
||||
// // }
|
||||
// };
|
||||
};
|
||||
if (!flag) {
|
||||
let option = {
|
||||
|
||||
@ -284,7 +284,7 @@
|
||||
<Air />
|
||||
</el-tab-pane>
|
||||
<!-- 模型管理 -->
|
||||
<el-tab-pane :label="$t('headerTitles.model.title')">
|
||||
<el-tab-pane :label="$t('headerTitles.model.title')">
|
||||
<!-- <model></model> -->
|
||||
<div class="modelBtn custom_scroll_bar" v-if="isStandAlone">
|
||||
<el-button @click="createLib('model')" type="warning" size="small">{{
|
||||
@ -386,7 +386,7 @@
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
<!-- 三维军标 -->
|
||||
<el-tab-pane v-if="false" label="三维军标">
|
||||
<el-tab-pane v-if="false" label="三维军标">
|
||||
<div class="modelBtn custom_scroll_bar" v-if="isStandAlone">
|
||||
<el-button @click="createLib('model')" type="warning" size="small">{{
|
||||
$t("headerTitles.model.createModelLibrary") }}
|
||||
@ -489,7 +489,7 @@
|
||||
</el-tab-pane>
|
||||
<!-- 军标管理 -->
|
||||
<!-- v-if="false" 标准版本 -->
|
||||
<el-tab-pane :label="$t('headerTitles.graphLabel.title')">
|
||||
<el-tab-pane :label="$t('headerTitles.graphLabel.title')">
|
||||
<div class="modelBtn custom_scroll_bar" v-if="isStandAlone">
|
||||
<el-button @click="createLib('graphLabel')" type="warning" size="small">{{
|
||||
$t("headerTitles.graphLabel.createGraphLabelLibrary") }}
|
||||
|
||||
@ -112,11 +112,11 @@ export default {
|
||||
.my_weather {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 100px;
|
||||
left: 280px;
|
||||
top: 85px;
|
||||
left: 260px;
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
z-index: 19;
|
||||
z-index: 30;
|
||||
background: linear-gradient(180deg, rgba(0, 255, 255, 0) 0%, rgba(0, 255, 255, 0.2) 100%), rgba(0, 0, 0, 0.6);
|
||||
padding: 10px;
|
||||
border: 1.5px solid aqua;
|
||||
|
||||
Reference in New Issue
Block a user