2025-06-18 11:50:49 +08:00
|
|
|
|
<template>
|
|
|
|
|
<div class="bim-briefing main-page">
|
2025-06-19 17:11:30 +08:00
|
|
|
|
<div id="bimBriefing">
|
|
|
|
|
<div id="bimBriefingContainer" class="bimBriefingContainer"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="div-left" :class="{ isShow: leftShow, isHide: !leftShow }">
|
|
|
|
|
<transition name="left">
|
|
|
|
|
<div class="data-content" v-show="leftShow">
|
|
|
|
|
<div class="div-row">
|
|
|
|
|
<div class="row-title">
|
|
|
|
|
<svg-icon icon-class="signal"></svg-icon>
|
|
|
|
|
模型结构树
|
|
|
|
|
</div>
|
|
|
|
|
<div class="model-tree scroll">
|
2025-07-26 15:21:53 +08:00
|
|
|
|
<el-tree :key="treeKey" ref="tree" :default-expanded-keys="treeExpendedKeys" :props="{
|
|
|
|
|
children: 'children',
|
|
|
|
|
label: 'title',
|
|
|
|
|
}" node-key="key" @check="onCheckTree" :load="loadNode" lazy show-checkbox></el-tree>
|
2025-06-19 17:11:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</transition>
|
|
|
|
|
<img :src="leftSrc" class="toSafety-fixed-left-img" @click="arrowRetract" id="arrowLeft" />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="div-right" :class="{ isShow: leftShow, isHide: !leftShow }">
|
|
|
|
|
<transition name="right">
|
|
|
|
|
<div class="data-content" v-show="leftShow">
|
2025-07-03 18:37:00 +08:00
|
|
|
|
<div class="div-row r100">
|
2025-06-19 17:11:30 +08:00
|
|
|
|
<div class="row-title">
|
|
|
|
|
<svg-icon icon-class="signal"></svg-icon>
|
2025-06-19 18:34:49 +08:00
|
|
|
|
{{ title }}
|
2025-06-19 17:11:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div class="model-properties scroll">
|
2025-06-19 18:34:49 +08:00
|
|
|
|
<template v-if="selectMenu == 7">
|
|
|
|
|
<div class="loading" v-if="propertyLoad == 'start'">
|
|
|
|
|
{{ attributeInformation }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="model-property-nav" v-if="propertyLoad == 'end'">
|
|
|
|
|
<el-radio-group v-model="selPropertyType" size="small" fill="#6cf">
|
|
|
|
|
<el-radio-button label="att">属性</el-radio-button>
|
|
|
|
|
<el-radio-button label="type">类型</el-radio-button>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="model-property-list" v-if="propertyLoad == 'end'">
|
|
|
|
|
<div v-for="(item, index) in selPropertyType == 'att' ? propertyAttr : propertyType" :key="index">
|
|
|
|
|
<div class="group-info">
|
|
|
|
|
<svg-icon icon-class="info" />
|
|
|
|
|
<span>{{ item.name }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<table class="model-property-table my-table">
|
|
|
|
|
<tr v-for="(item2, index) in item.data" :key="index">
|
2025-08-30 11:33:32 +08:00
|
|
|
|
<th width="50%" >{{ item2.propertyName }}</th>
|
|
|
|
|
<td width="50%" >{{ item2.value }}</td>
|
2025-06-19 18:34:49 +08:00
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
2025-06-19 17:11:30 +08:00
|
|
|
|
</div>
|
2025-06-19 18:34:49 +08:00
|
|
|
|
</div>
|
|
|
|
|
</template>
|
2025-06-24 15:21:35 +08:00
|
|
|
|
<template v-if="selectMenu == 1 || selectMenu == 4">
|
2025-06-19 18:34:49 +08:00
|
|
|
|
<div class="info-list">
|
2025-06-23 12:04:37 +08:00
|
|
|
|
<div v-for="(item, index) in info" :key="index">
|
|
|
|
|
<div class="group-info">
|
|
|
|
|
<svg-icon icon-class="info" />
|
|
|
|
|
<span>{{ item.name }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<table class="model-property-table my-table">
|
2025-06-24 15:21:35 +08:00
|
|
|
|
<tr v-for="(item2, index2) in item.data" :key="index2 + '-' + index">
|
2025-08-30 11:33:32 +08:00
|
|
|
|
<th width="50%" :class="'txt'+selectMenu+item2.name">{{ item2.name }}</th>
|
|
|
|
|
<td width="50%" :class="'txt'+selectMenu+item2.name">
|
2025-06-24 15:21:35 +08:00
|
|
|
|
{{ item2.value }}
|
|
|
|
|
<span v-if="index == 0">米</span>
|
|
|
|
|
<span v-if="index == 1">米<sup>2</sup></span>
|
|
|
|
|
<span v-if="index == 2">米<sup>3</sup></span>
|
2025-06-23 12:04:37 +08:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2025-06-19 17:11:30 +08:00
|
|
|
|
</div>
|
2025-06-19 18:34:49 +08:00
|
|
|
|
</template>
|
2025-06-24 15:21:35 +08:00
|
|
|
|
|
|
|
|
|
<div class="clipping-tip" v-if="showClipping">
|
|
|
|
|
<div class="info-list">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="group-info">
|
|
|
|
|
<svg-icon icon-class="info" />
|
|
|
|
|
<span>操作指南</span>
|
|
|
|
|
</div>
|
|
|
|
|
<table class="clipping-tip-table my-table">
|
|
|
|
|
<tr>
|
|
|
|
|
<th>鼠标左键按住剖面框中心箭头线</th>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>拖动可平移剖面框,移出剖面框的部分将被剖切掉</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>鼠标左键按住剖面框中心箭头线之间的弧线</th>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>拖动可旋转剖面框,移出剖面框的部分将被剖切掉</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-07-07 16:50:04 +08:00
|
|
|
|
<template v-if="selectMenu == 6">
|
|
|
|
|
<el-button type="primary" @click="clearAllHide" class="clear-all-btn">清除所有</el-button>
|
|
|
|
|
<div class="hide-list scroll">
|
|
|
|
|
<div v-for="(item, index) in hideFeatureIds" :key="index" class="hide-item">
|
|
|
|
|
<div class="hide-item-state">{{ item.show ? "隐藏" : "显示" }}</div>
|
|
|
|
|
<el-switch v-model="item.show" @change="changeSwitch(item)"></el-switch>
|
|
|
|
|
<div class="hide-item-id">{{ item.id }}</div>
|
2025-07-26 15:21:53 +08:00
|
|
|
|
<div class="hide-item-delete"><i class="el-icon-delete command" @click="deleteFeature(item)" />
|
|
|
|
|
</div>
|
2025-07-07 16:50:04 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
2025-06-19 17:11:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2025-07-05 17:51:17 +08:00
|
|
|
|
<div class="div-row r33" v-if="1 == 2">
|
2025-06-19 17:11:30 +08:00
|
|
|
|
<div class="row-title">
|
|
|
|
|
<svg-icon icon-class="signal"></svg-icon>
|
|
|
|
|
进度信息
|
|
|
|
|
</div>
|
|
|
|
|
<div class="model-progress scroll">
|
|
|
|
|
<table class="model-progress-table my-table">
|
|
|
|
|
<tr>
|
|
|
|
|
<th>计划开始时间</th>
|
|
|
|
|
<td>2025-01-02</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>计划结束时间</th>
|
|
|
|
|
<td>2025-12-31</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<div class="group-info">
|
|
|
|
|
<svg-icon icon-class="info" />
|
|
|
|
|
<span>当前进度</span>
|
|
|
|
|
</div>
|
|
|
|
|
<el-progress :text-inside="true" :stroke-width="26" color="#37A685" :percentage="70" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</transition>
|
|
|
|
|
<img :src="rightSrc" class="toSafety-fixed-right-img" @click="arrowRetract" id="arrowRight" />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="div-tools">
|
|
|
|
|
<div class="tool-item" :class="{ 'is-selected': selectMenu == 0 }" @click="doSelectMenu(0)">
|
|
|
|
|
<el-tooltip content="默认视点" placement="top">
|
|
|
|
|
<div class="icon">
|
|
|
|
|
<svg-icon icon-class="home" />
|
|
|
|
|
</div>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="tool-item" :class="{ 'is-selected': selectMenu == 1 }" @click="doSelectMenu(1)">
|
2025-06-23 12:04:37 +08:00
|
|
|
|
<el-tooltip content="构建测量" placement="top">
|
2025-06-19 17:11:30 +08:00
|
|
|
|
<div class="icon">
|
|
|
|
|
<svg-icon icon-class="size2" />
|
|
|
|
|
</div>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</div>
|
|
|
|
|
|
2025-06-24 15:21:35 +08:00
|
|
|
|
<div class="tool-item" :class="{ 'is-selected': selectMenu == 2 }" @click="doSelectMenu(2)" v-if="1 == 2">
|
2025-06-19 17:11:30 +08:00
|
|
|
|
<el-tooltip content="构建面积" placement="top">
|
|
|
|
|
<div class="icon">
|
|
|
|
|
<svg-icon icon-class="area2" />
|
|
|
|
|
</div>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</div>
|
|
|
|
|
|
2025-06-24 15:21:35 +08:00
|
|
|
|
<div class="tool-item" :class="{ 'is-selected': selectMenu == 3 }" @click="doSelectMenu(3)" v-if="1 == 2">
|
2025-06-19 17:11:30 +08:00
|
|
|
|
<el-tooltip content="构建体积" placement="top">
|
|
|
|
|
<div class="icon">
|
|
|
|
|
<svg-icon icon-class="volume" />
|
|
|
|
|
</div>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="tool-item" :class="{ 'is-selected': selectMenu == 4 }" @click="doSelectMenu(4)">
|
|
|
|
|
<el-tooltip content="距离测量" placement="top">
|
|
|
|
|
<div class="icon">
|
|
|
|
|
<svg-icon icon-class="distance" />
|
|
|
|
|
</div>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="tool-item" :class="{ 'is-selected': selectMenu == 5 }" @click="doSelectMenu(5)">
|
|
|
|
|
<el-tooltip content="剖切" placement="top">
|
|
|
|
|
<div class="icon">
|
|
|
|
|
<svg-icon icon-class="sectioning" />
|
|
|
|
|
</div>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="tool-item" :class="{ 'is-selected': selectMenu == 6 }" @click="doSelectMenu(6)">
|
|
|
|
|
<el-tooltip content="构建隐藏" placement="top">
|
|
|
|
|
<div class="icon">
|
|
|
|
|
<svg-icon icon-class="hide" />
|
|
|
|
|
</div>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="tool-item" :class="{ 'is-selected': selectMenu == 7 }" @click="doSelectMenu(7)">
|
|
|
|
|
<el-tooltip content="构建属性" placement="top">
|
|
|
|
|
<div class="icon">
|
|
|
|
|
<svg-icon icon-class="attribute" />
|
|
|
|
|
</div>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-06-18 11:50:49 +08:00
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2025-06-19 17:11:30 +08:00
|
|
|
|
import debounce from "lodash.debounce";
|
2025-06-19 18:34:49 +08:00
|
|
|
|
import briefingTools from "./bim/briefingTools";
|
2025-06-19 17:11:30 +08:00
|
|
|
|
import SvgIcon from "@/components/SvgIcon.vue";
|
2025-07-29 17:42:49 +08:00
|
|
|
|
import apiTools from './bim/apiTools.js'
|
|
|
|
|
import sapiTools from './bim/sapiTools.js'
|
2025-07-26 15:21:53 +08:00
|
|
|
|
import bimTools from "./bim/bimTools";
|
2025-06-18 11:50:49 +08:00
|
|
|
|
export default {
|
2025-06-19 17:11:30 +08:00
|
|
|
|
components: { SvgIcon },
|
|
|
|
|
name: "BimBriefing",
|
2025-06-18 11:50:49 +08:00
|
|
|
|
data() {
|
|
|
|
|
return {
|
2025-06-19 17:11:30 +08:00
|
|
|
|
dpi: "",
|
|
|
|
|
selProject: null,
|
|
|
|
|
leftSrc: "./bimImages/arrow_left_retract.png",
|
|
|
|
|
rightSrc: "./bimImages/arrow_right_retract.png",
|
|
|
|
|
leftShow: true,
|
|
|
|
|
models: [],
|
|
|
|
|
treeKey: 0,
|
|
|
|
|
modelTrees: [],
|
|
|
|
|
treeExpendedKeys: [],
|
|
|
|
|
selectMenu: 0,
|
|
|
|
|
attributeInformation: "",
|
|
|
|
|
propertyAttr: [],
|
|
|
|
|
propertyType: [],
|
2025-07-07 16:50:04 +08:00
|
|
|
|
hideFeatureIds: [],
|
|
|
|
|
propertyAttrValue: [],
|
2025-06-19 17:11:30 +08:00
|
|
|
|
selPropertyType: "att",
|
|
|
|
|
propertyLoad: "",
|
|
|
|
|
viewPoint: [],
|
2025-06-19 18:34:49 +08:00
|
|
|
|
info: [],
|
|
|
|
|
title: "属性",
|
2025-06-24 15:21:35 +08:00
|
|
|
|
showClipping: false,
|
2025-08-30 11:33:32 +08:00
|
|
|
|
isClient: false,
|
2025-06-19 17:11:30 +08:00
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.$store.dispatch("ChangeNav", 702);
|
|
|
|
|
this.dpi = this.$dpi();
|
|
|
|
|
window.addEventListener("resize", () => {
|
|
|
|
|
if (this.dpi != this.$dpi()) {
|
|
|
|
|
this.dpi = this.$dpi();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.$bus.$on(
|
|
|
|
|
"projectChange",
|
|
|
|
|
debounce((prj) => {
|
|
|
|
|
this.selProject = prj;
|
|
|
|
|
this.elId++;
|
|
|
|
|
this.initEngine();
|
|
|
|
|
})
|
|
|
|
|
);
|
2025-08-30 11:33:32 +08:00
|
|
|
|
window.bbApp=this
|
2025-06-19 17:11:30 +08:00
|
|
|
|
this.selProject = this.$store.getters.selProject;
|
|
|
|
|
this.initEngine();
|
2025-06-18 11:50:49 +08:00
|
|
|
|
},
|
|
|
|
|
methods: {
|
2025-08-19 18:01:44 +08:00
|
|
|
|
clientShow() {
|
|
|
|
|
return this.bimCfg?.clientApi || false;
|
2025-07-29 17:42:49 +08:00
|
|
|
|
},
|
2025-07-07 16:50:04 +08:00
|
|
|
|
clearAllHide() {
|
|
|
|
|
this.$confirm("确定要显示所有构件吗?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
type: "warning",
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
let api = bimBriefingApi;
|
|
|
|
|
this.hideFeatureIds.forEach((it) => {
|
|
|
|
|
api.Feature.setVisible(it.featureId, true);
|
|
|
|
|
});
|
|
|
|
|
this.hideFeatureIds = [];
|
|
|
|
|
})
|
2025-07-26 15:21:53 +08:00
|
|
|
|
.catch(() => { });
|
2025-07-07 16:50:04 +08:00
|
|
|
|
},
|
|
|
|
|
changeSwitch(item) {
|
|
|
|
|
let api = bimBriefingApi;
|
|
|
|
|
api.Feature.setVisible(item.featureId, item.show);
|
|
|
|
|
},
|
|
|
|
|
deleteFeature(item) {
|
|
|
|
|
let api = bimBriefingApi;
|
|
|
|
|
api.Feature.setVisible(item.featureId, true);
|
|
|
|
|
let idx = this.hideFeatureIds.indexOf(item);
|
|
|
|
|
this.hideFeatureIds.splice(idx, 1);
|
|
|
|
|
},
|
2025-07-02 14:35:03 +08:00
|
|
|
|
loadNode(node, resolve) {
|
|
|
|
|
let that = this;
|
|
|
|
|
if (node.level == 0) {
|
|
|
|
|
let nd = [
|
|
|
|
|
{
|
|
|
|
|
title: "项目模型",
|
|
|
|
|
level: 0,
|
|
|
|
|
type: "root",
|
|
|
|
|
key: "root",
|
|
|
|
|
children: [],
|
|
|
|
|
hadLoad: true,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
resolve(nd);
|
|
|
|
|
setTimeout(() => {
|
2025-07-05 17:51:17 +08:00
|
|
|
|
let els = document.querySelectorAll(".bim-briefing .model-tree .el-tree-node");
|
|
|
|
|
if (els.length > 0) {
|
|
|
|
|
els[0].click();
|
|
|
|
|
}
|
2025-07-02 14:35:03 +08:00
|
|
|
|
}, 1000);
|
|
|
|
|
} else if (node.level == 1) {
|
|
|
|
|
let nd = [];
|
|
|
|
|
that.models.forEach((d) => {
|
|
|
|
|
let mnd = {
|
|
|
|
|
title: d.modelName,
|
|
|
|
|
level: 1,
|
|
|
|
|
type: "model",
|
|
|
|
|
hasLoad: false,
|
|
|
|
|
modelId: d.lightweightName,
|
|
|
|
|
key: d.lightweightName,
|
|
|
|
|
externalId: "0",
|
|
|
|
|
glid: "",
|
|
|
|
|
children: [],
|
|
|
|
|
data: d,
|
|
|
|
|
};
|
|
|
|
|
nd.push(mnd);
|
|
|
|
|
});
|
|
|
|
|
resolve(nd);
|
|
|
|
|
} else {
|
|
|
|
|
this.getTreeChildren(node, resolve);
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-07-03 18:37:00 +08:00
|
|
|
|
getTreeChildren(node, resolve) {
|
2025-07-02 14:35:03 +08:00
|
|
|
|
let that = this;
|
|
|
|
|
let data = node.data;
|
|
|
|
|
this.$api.bim.getModelTree(data.modelId, data.glid).then((d) => {
|
|
|
|
|
let tmps = (d.data || []).map((it) => {
|
|
|
|
|
let title = it.externalId == 0 ? it.name : it.externalId;
|
|
|
|
|
title = title.replaceAll('"', "").replaceAll("'", "").replaceAll("\\", "");
|
|
|
|
|
it.title = title;
|
|
|
|
|
it.key = it.glid;
|
|
|
|
|
it.modelId = data.modelId;
|
|
|
|
|
it.type = "data";
|
|
|
|
|
it.leaf = +it.externalId != 0;
|
|
|
|
|
let o = this.convertFeatureInfo(it, data.modelId);
|
|
|
|
|
return o;
|
|
|
|
|
});
|
|
|
|
|
resolve(tmps);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
convertFeatureInfo(o, modelId) {
|
|
|
|
|
o.modelId = modelId;
|
|
|
|
|
o.featureId = o.modelId + "^" + o.externalId;
|
|
|
|
|
o.name = o.name || "";
|
|
|
|
|
o.name = o.name.replaceAll('"', "").replaceAll("'", "").replaceAll("\\", "");
|
|
|
|
|
o.info = `[${o.externalId}]${o.groupname}-${o.name}`;
|
|
|
|
|
return o;
|
|
|
|
|
},
|
2025-06-19 17:11:30 +08:00
|
|
|
|
doSelectMenu(index) {
|
|
|
|
|
this.selectMenu = index;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
if (index == 0) {
|
2025-07-07 16:50:04 +08:00
|
|
|
|
briefingTools.clearEvent(this);
|
|
|
|
|
this.showClipping = false;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
briefingTools.clearSelectFeature(this);
|
2025-07-07 16:50:04 +08:00
|
|
|
|
}
|
2025-08-30 11:33:32 +08:00
|
|
|
|
briefingTools.clearSelectFeature(this);
|
2025-06-19 17:11:30 +08:00
|
|
|
|
switch (index) {
|
|
|
|
|
case 0:
|
|
|
|
|
this.resetScene();
|
2025-06-19 18:34:49 +08:00
|
|
|
|
this.title = "主界面";
|
2025-06-19 17:11:30 +08:00
|
|
|
|
break;
|
|
|
|
|
case 1:
|
2025-06-19 18:34:49 +08:00
|
|
|
|
briefingTools.subFeatureSize(this);
|
2025-06-23 12:04:37 +08:00
|
|
|
|
this.title = "构建测量";
|
2025-06-19 17:11:30 +08:00
|
|
|
|
break;
|
|
|
|
|
case 2:
|
2025-06-19 18:34:49 +08:00
|
|
|
|
briefingTools.measurementArea(this);
|
|
|
|
|
this.title = "面积测量";
|
2025-06-19 17:11:30 +08:00
|
|
|
|
break;
|
|
|
|
|
case 3:
|
2025-06-19 18:34:49 +08:00
|
|
|
|
briefingTools.measurementVolume(this);
|
2025-06-19 17:11:30 +08:00
|
|
|
|
break;
|
|
|
|
|
case 4:
|
2025-06-19 18:34:49 +08:00
|
|
|
|
briefingTools.distance(this);
|
|
|
|
|
this.title = "距离测量";
|
2025-06-19 17:11:30 +08:00
|
|
|
|
break;
|
|
|
|
|
case 5:
|
2025-06-19 18:34:49 +08:00
|
|
|
|
briefingTools.initClipping(this);
|
|
|
|
|
this.title = "剖切";
|
2025-06-24 15:21:35 +08:00
|
|
|
|
this.showClipping = true;
|
2025-06-19 17:11:30 +08:00
|
|
|
|
break;
|
|
|
|
|
case 6:
|
2025-06-19 18:34:49 +08:00
|
|
|
|
briefingTools.actorVisible(this);
|
|
|
|
|
this.title = "隐藏";
|
2025-06-19 17:11:30 +08:00
|
|
|
|
break;
|
|
|
|
|
case 7:
|
2025-06-19 18:34:49 +08:00
|
|
|
|
briefingTools.getProperty(this);
|
|
|
|
|
this.title = "属性";
|
2025-06-19 17:11:30 +08:00
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-07-02 14:35:03 +08:00
|
|
|
|
async onCheckTree(node, event) {
|
|
|
|
|
let api = bimBriefingApi;
|
|
|
|
|
let that = this;
|
2025-06-19 17:11:30 +08:00
|
|
|
|
if (!this.modelLoaded) {
|
|
|
|
|
this.$message.error("模型未加载完成,请稍后重试");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
let checked = event.checkedNodes.includes(node);
|
|
|
|
|
if (node.type == "root") {
|
|
|
|
|
if (checked) {
|
2025-07-02 14:35:03 +08:00
|
|
|
|
that.models.forEach((it) => {
|
2025-07-03 18:37:00 +08:00
|
|
|
|
it.visible = true;
|
2025-07-02 14:35:03 +08:00
|
|
|
|
api.Model.setVisible(it.modelId, true);
|
|
|
|
|
api.Model.original(it.modelId);
|
2025-08-30 11:33:32 +08:00
|
|
|
|
bimTools.hideParts(window.bimBriefingApi, this.hideParts);
|
2025-06-19 17:11:30 +08:00
|
|
|
|
});
|
|
|
|
|
} else {
|
2025-07-02 14:35:03 +08:00
|
|
|
|
that.models.forEach((it) => {
|
2025-07-03 18:37:00 +08:00
|
|
|
|
it.visible = false;
|
2025-07-02 14:35:03 +08:00
|
|
|
|
api.Model.setVisible(it.modelId, false);
|
|
|
|
|
});
|
2025-06-19 17:11:30 +08:00
|
|
|
|
}
|
2025-07-02 14:35:03 +08:00
|
|
|
|
} else if (node.type == "model") {
|
2025-06-19 17:11:30 +08:00
|
|
|
|
if (checked) {
|
2025-07-02 14:35:03 +08:00
|
|
|
|
api.Model.setVisible(node.modelId, true);
|
|
|
|
|
api.Model.original(node.modelId);
|
2025-08-30 11:33:32 +08:00
|
|
|
|
bimTools.hideParts(window.bimBriefingApi, this.hideParts);
|
2025-07-03 18:37:00 +08:00
|
|
|
|
this.models.find((mm) => mm.modelId == node.modelId).visible = true;
|
2025-06-19 17:11:30 +08:00
|
|
|
|
} else {
|
2025-07-02 14:35:03 +08:00
|
|
|
|
api.Model.setVisible(node.modelId, false);
|
2025-07-03 18:37:00 +08:00
|
|
|
|
this.models.find((mm) => mm.modelId == node.modelId).visible = false;
|
2025-06-19 17:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
} else {
|
2025-07-02 14:35:03 +08:00
|
|
|
|
let isPartLoad = false;
|
2025-07-03 18:37:00 +08:00
|
|
|
|
if (!this.models.find((mm) => mm.modelId == node.modelId).visible && checked) {
|
2025-07-02 14:35:03 +08:00
|
|
|
|
isPartLoad = true;
|
|
|
|
|
}
|
|
|
|
|
let selFeatureIds = [];
|
|
|
|
|
if (node.leaf) {
|
|
|
|
|
selFeatureIds = [node.featureId];
|
|
|
|
|
} else {
|
|
|
|
|
if (!node.leafs) {
|
|
|
|
|
let leafs = await this.getNodeLeafs(node);
|
|
|
|
|
node.leafs = leafs;
|
|
|
|
|
}
|
|
|
|
|
selFeatureIds = node.leafs.map((f) => f.featureId);
|
|
|
|
|
}
|
|
|
|
|
let tmps = selFeatureIds;
|
|
|
|
|
if (!checked) {
|
|
|
|
|
this.setFeatueVisible(tmps, false);
|
|
|
|
|
} else {
|
|
|
|
|
if (isPartLoad) {
|
|
|
|
|
api.Model.setVisible(node.modelId, true);
|
2025-07-03 18:37:00 +08:00
|
|
|
|
this.models.find((mm) => mm.modelId == node.modelId).visible = true;
|
2025-07-02 14:35:03 +08:00
|
|
|
|
api.Model.original(node.modelId);
|
2025-08-30 11:33:32 +08:00
|
|
|
|
bimTools.hideParts(window.bimBriefingApi, this.hideParts);
|
2025-07-05 17:51:17 +08:00
|
|
|
|
if (tmps.length > 0) {
|
2025-07-03 18:37:00 +08:00
|
|
|
|
let tmpsIds2 = tmps.splice(0, 1000);
|
|
|
|
|
api.Feature.showFeatures(tmpsIds2.join("#"));
|
|
|
|
|
this.setFeatueVisible(tmps, true);
|
|
|
|
|
}
|
2025-06-19 17:11:30 +08:00
|
|
|
|
} else {
|
2025-07-02 14:35:03 +08:00
|
|
|
|
this.setFeatueVisible(tmps, true);
|
2025-06-19 17:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-07-02 14:35:03 +08:00
|
|
|
|
setFeatueVisible(featureIds, show) {
|
|
|
|
|
let len = 1000;
|
|
|
|
|
let api = bimBriefingApi;
|
|
|
|
|
let cnt = featureIds.length;
|
|
|
|
|
for (let i = 0; i < cnt; i += len) {
|
|
|
|
|
api.Feature.setVisible(featureIds.slice(i, i + len).join("#"), show);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async getNodeLeafs(node) {
|
|
|
|
|
const res = await this.$api.bim.getTreeAllLeafChild(node.modelId, node.glid);
|
|
|
|
|
return (res.data || []).map((f) => {
|
|
|
|
|
return this.convertFeatureInfo(f, node.modelId);
|
|
|
|
|
});
|
|
|
|
|
},
|
2025-06-19 17:11:30 +08:00
|
|
|
|
arrowRetract() {
|
|
|
|
|
if (this.leftShow == true) {
|
2025-07-31 19:09:03 +08:00
|
|
|
|
this.rightSrc = "/cdn/bsimages/arrow_right_open.png";
|
|
|
|
|
this.leftSrc = "/cdn/bsimages/arrow_left_open.png";
|
2025-06-19 17:11:30 +08:00
|
|
|
|
$("#arrowLeft").animate({ left: 10 + "px" }, 300);
|
|
|
|
|
$("#arrowRight").animate({ right: 10 + "px" }, 300);
|
|
|
|
|
} else {
|
2025-07-31 19:09:03 +08:00
|
|
|
|
this.rightSrc = "/cdn/bsimages/arrow_right_retract.png";
|
|
|
|
|
this.leftSrc = "/cdn/bsimages/arrow_left_retract.png";
|
2025-06-18 11:50:49 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
$("#arrowLeft").animate({ left: 490 + "px" }, 300);
|
|
|
|
|
$("#arrowRight").animate({ right: 490 + "px" }, 300);
|
|
|
|
|
}
|
|
|
|
|
this.leftShow = !this.leftShow;
|
|
|
|
|
},
|
|
|
|
|
initEngine() {
|
2025-07-29 17:42:49 +08:00
|
|
|
|
if (!this.selProject) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
2025-06-19 17:11:30 +08:00
|
|
|
|
this.elId++;
|
2025-06-23 12:04:37 +08:00
|
|
|
|
this.modelTrees = [];
|
|
|
|
|
this.models = [];
|
|
|
|
|
this.propertyAttr = [];
|
|
|
|
|
this.propertyType = [];
|
|
|
|
|
this.viewPoint = [];
|
2025-06-24 15:21:35 +08:00
|
|
|
|
this.info = [];
|
2025-06-23 12:04:37 +08:00
|
|
|
|
this.attributeInformation = "";
|
2025-07-26 15:21:53 +08:00
|
|
|
|
bimTools.initBimCfg(this);
|
2025-06-19 17:11:30 +08:00
|
|
|
|
setTimeout(() => {
|
2025-08-30 11:33:32 +08:00
|
|
|
|
bimTools.initEngine("bimBriefingApi", "bimBriefingContainer", this.bimCfg, this.initLoadModel);
|
2025-06-19 17:11:30 +08:00
|
|
|
|
}, 10);
|
|
|
|
|
},
|
|
|
|
|
initLoadModel() {
|
2025-07-26 15:21:53 +08:00
|
|
|
|
this.$api.bim.getDefaultViewPoint(this.selProject.id, 1).then((d) => {
|
2025-07-07 16:50:04 +08:00
|
|
|
|
let pt = "";
|
|
|
|
|
if (d.data && d.data.length > 0) {
|
|
|
|
|
pt = d.data[0].viewPosition;
|
|
|
|
|
pt = this.$tryToJson(pt, null);
|
|
|
|
|
}
|
|
|
|
|
if (pt) {
|
|
|
|
|
this.viewPoint = pt;
|
|
|
|
|
}
|
|
|
|
|
});
|
2025-06-19 17:11:30 +08:00
|
|
|
|
this.$api.bim
|
|
|
|
|
.listBimModel({
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 100,
|
|
|
|
|
comId: this.selProject.comId,
|
|
|
|
|
projectId: this.selProject.id,
|
|
|
|
|
})
|
|
|
|
|
.then((d) => {
|
2025-07-03 18:37:00 +08:00
|
|
|
|
this.models = (d.rows || []).map((it) => {
|
|
|
|
|
it.modelId = it.lightweightName;
|
2025-07-29 17:42:49 +08:00
|
|
|
|
it.bimCfg = this.$tryToJson(it.bimConfig || "{}", {});
|
2025-07-03 18:37:00 +08:00
|
|
|
|
it.visible = false;
|
|
|
|
|
it.checked = true;
|
|
|
|
|
it.gis = this.$tryToJson(it.gisJson || "{}", {});
|
|
|
|
|
return it;
|
|
|
|
|
});
|
2025-06-19 17:11:30 +08:00
|
|
|
|
if (this.models.length == 0) {
|
2025-06-25 10:36:08 +08:00
|
|
|
|
this.$message.error("暂无模型,请先关联模型");
|
2025-06-19 17:11:30 +08:00
|
|
|
|
} else {
|
2025-08-30 11:33:32 +08:00
|
|
|
|
bimTools.addModelList(window.bimBriefingApi, this.bimCfg, this.models, (hideParts) => {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
bimTools.setDefaultViewPoint(window.bimBriefingApi, this.bimCfg, this.viewPoint)
|
|
|
|
|
this.hideParts = hideParts;
|
|
|
|
|
bimTools.hideParts(window.bimBriefingApi, hideParts);
|
|
|
|
|
this.modelLoaded = true;
|
|
|
|
|
bimTools.initLoadModel(this, bimBriefingApi)
|
|
|
|
|
this.resetScene();
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
this.doSelectMenu(7);
|
|
|
|
|
},4000);
|
|
|
|
|
}, 1000);
|
|
|
|
|
});
|
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
this.models.forEach((item) => {
|
2025-07-02 14:35:03 +08:00
|
|
|
|
item.modelId = item.lightweightName;
|
|
|
|
|
item.gis = JSON.parse(item.gisJson);
|
2025-07-03 18:37:00 +08:00
|
|
|
|
setTimeout(() => {
|
2025-07-02 14:35:03 +08:00
|
|
|
|
this.$refs.tree.setChecked(item.lightweightName, true, true);
|
|
|
|
|
}, 3000);
|
2025-08-30 11:33:32 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
});
|
2025-08-30 11:33:32 +08:00
|
|
|
|
this.treeKey++;
|
2025-06-19 17:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
loadModelTree() {
|
|
|
|
|
this.modelTrees = [
|
|
|
|
|
{
|
|
|
|
|
title: "项目模型",
|
|
|
|
|
level: 0,
|
|
|
|
|
type: "root",
|
|
|
|
|
key: "root",
|
|
|
|
|
children: [],
|
|
|
|
|
hadLoad: true,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
this.treeExpendedKeys.push("root");
|
|
|
|
|
this.models
|
|
|
|
|
.map((d) => {
|
|
|
|
|
d.gis = JSON.parse(d.gisJson);
|
2025-06-23 12:04:37 +08:00
|
|
|
|
d.modelId = d.lightweightName;
|
2025-06-19 17:11:30 +08:00
|
|
|
|
return d;
|
|
|
|
|
})
|
|
|
|
|
.forEach((d) => {
|
|
|
|
|
let node = {
|
|
|
|
|
title: d.modelName,
|
|
|
|
|
level: 1,
|
|
|
|
|
type: "model",
|
|
|
|
|
hasLoad: false,
|
|
|
|
|
modelId: d.lightweightName,
|
|
|
|
|
key: d.lightweightName,
|
|
|
|
|
externalId: "0",
|
|
|
|
|
glid: "",
|
|
|
|
|
children: [],
|
|
|
|
|
data: d,
|
|
|
|
|
};
|
|
|
|
|
this.treeExpendedKeys.push(node.key);
|
|
|
|
|
this.modelTrees[0].children.push(node);
|
|
|
|
|
this.getTreeData(node);
|
|
|
|
|
});
|
|
|
|
|
this.showTree = true;
|
|
|
|
|
},
|
|
|
|
|
getTreeData(node) {
|
|
|
|
|
this.$api.bim.modelTreeAllChild(node.modelId, "").then((d) => {
|
|
|
|
|
let objs = d.data || [];
|
|
|
|
|
let makeTree = (tmps) => {
|
|
|
|
|
tmps.forEach((item) => {
|
|
|
|
|
item.children = objs.filter((it) => it.pglid == item.glid);
|
|
|
|
|
if (item.children.length > 0) {
|
|
|
|
|
makeTree(item.children);
|
|
|
|
|
}
|
|
|
|
|
item.hasLoad = true;
|
|
|
|
|
item.title = item.name;
|
|
|
|
|
item.key = item.glid;
|
|
|
|
|
item.modelId = node.modelId;
|
|
|
|
|
});
|
|
|
|
|
return tmps;
|
|
|
|
|
};
|
|
|
|
|
node.children = makeTree(objs.filter((item) => item.level == 0));
|
2025-08-30 11:33:32 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
this.treeKey++;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
resetScene() {
|
2025-08-30 11:33:32 +08:00
|
|
|
|
bimBriefingApi.Measurement.clearAllTrace()
|
|
|
|
|
bimBriefingApi.Public.clearHandler()
|
2025-07-29 17:42:49 +08:00
|
|
|
|
bimTools.resetScene(this, bimBriefingApi)
|
2025-08-30 11:33:32 +08:00
|
|
|
|
bimTools.hideParts(window.bimBriefingApi, this.hideParts);
|
2025-06-19 17:11:30 +08:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
2025-06-18 11:50:49 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less">
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.bim-briefing {
|
|
|
|
|
height: 100%;
|
|
|
|
|
position: relative;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
#bimBriefing {
|
|
|
|
|
height: 100%;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
#bimBriefingContainer {
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.div-left {
|
|
|
|
|
top: 10vh;
|
|
|
|
|
left: 5%;
|
|
|
|
|
position: absolute;
|
|
|
|
|
height: 70vh;
|
|
|
|
|
width: 14%;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
&.isHide {
|
|
|
|
|
left: 0%;
|
|
|
|
|
wdith: 0%;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
#arrowLeft {
|
|
|
|
|
left: 0px !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
#arrowLeft {
|
|
|
|
|
top: calc(50% - 50px);
|
|
|
|
|
right: -21px;
|
|
|
|
|
left: unset !important;
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.div-row {
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.div-right {
|
|
|
|
|
top: 10vh;
|
|
|
|
|
right: 5%;
|
|
|
|
|
position: absolute;
|
|
|
|
|
height: 70vh;
|
|
|
|
|
width: 14%;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
&.isHide {
|
|
|
|
|
right: 0%;
|
|
|
|
|
width: 0%;
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
#arrowRight {
|
|
|
|
|
top: calc(50% - 50px);
|
|
|
|
|
left: -21px;
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.div-row {
|
|
|
|
|
&.r33 {
|
|
|
|
|
height: 180px;
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
&.r66 {
|
|
|
|
|
height: calc(100% - 180px);
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-07-05 17:51:17 +08:00
|
|
|
|
&.r100 {
|
2025-07-03 18:37:00 +08:00
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
2025-06-19 17:11:30 +08:00
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-07-07 16:50:04 +08:00
|
|
|
|
.clear-all-btn {
|
|
|
|
|
margin: 10px;
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-08-30 11:33:32 +08:00
|
|
|
|
.model-property-table{
|
|
|
|
|
.txt4X{
|
|
|
|
|
color:#f92e2e;
|
|
|
|
|
}
|
|
|
|
|
.txt4Y{
|
|
|
|
|
color:#8fed12;
|
|
|
|
|
}
|
|
|
|
|
.txt4Z{
|
|
|
|
|
color:orange;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-07-07 16:50:04 +08:00
|
|
|
|
.hide-list {
|
|
|
|
|
height: calc(100% - 60px);
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
padding: 0px 10px;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-07-07 16:50:04 +08:00
|
|
|
|
.hide-item {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
display: flex;
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
align-items: center;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-07-07 16:50:04 +08:00
|
|
|
|
.hide-item-state {
|
|
|
|
|
color: #e4e7edcc;
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-07-07 16:50:04 +08:00
|
|
|
|
.hide-item-id {
|
|
|
|
|
flex-grow: 1;
|
|
|
|
|
margin: 0px 10px;
|
|
|
|
|
color: #22d3f4;
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-07-07 16:50:04 +08:00
|
|
|
|
.hide-item-delete {
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
color: #48f800;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-06-19 17:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.data-content {
|
|
|
|
|
height: 100%;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.div-row {
|
|
|
|
|
border: solid 1px #75fbfdaa;
|
|
|
|
|
background-color: #06445b81;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.row-title {
|
|
|
|
|
background: linear-gradient(0deg, #105696, #c0dafb00, #1765ae);
|
|
|
|
|
padding-left: 10px;
|
|
|
|
|
height: 36px;
|
|
|
|
|
line-height: 36px;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.svg-icon {
|
|
|
|
|
fill: #75fbfd;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.div-tools {
|
|
|
|
|
position: absolute;
|
2025-06-21 10:49:52 +08:00
|
|
|
|
top: calc(80vh - 50px);
|
2025-06-19 17:11:30 +08:00
|
|
|
|
left: 50%;
|
2025-06-23 12:04:37 +08:00
|
|
|
|
margin-left: -150px;
|
2025-06-19 17:11:30 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
background: #00000080;
|
|
|
|
|
border-radius: 10px;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.tool-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-flow: column;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
align-items: center;
|
|
|
|
|
cursor: pointer;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
&.is-selected {
|
|
|
|
|
.icon {
|
|
|
|
|
background: #097fca94;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.svg-icon {
|
|
|
|
|
fill: #75fbfd;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.sp-text {
|
|
|
|
|
color: #75fbfd;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.icon {
|
|
|
|
|
width: 30px;
|
|
|
|
|
height: 30px;
|
|
|
|
|
background: #c0c4cca1;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
border-radius: 15px;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.svg-icon {
|
|
|
|
|
width: 20px;
|
|
|
|
|
height: 20px;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.sp-text {
|
|
|
|
|
margin-top: 4px;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.model-tree {
|
|
|
|
|
height: calc(100% - 36px);
|
|
|
|
|
overflow-y: auto;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.el-tree {
|
|
|
|
|
background: transparent;
|
|
|
|
|
color: #eee;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.el-checkbox {
|
|
|
|
|
color: #45fdfe;
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.el-tree-node {
|
|
|
|
|
&:focus {
|
2025-07-26 15:21:53 +08:00
|
|
|
|
&>.el-tree-node__content {
|
2025-06-19 17:11:30 +08:00
|
|
|
|
background: #3489d966;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
&:hover {
|
|
|
|
|
background: #3489d966;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.el-tree-node__content:hover {
|
|
|
|
|
background: #3489d966;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.model-properties {
|
|
|
|
|
height: calc(100% - 46px);
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
padding-bottom: 10px;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.model-property-nav {
|
|
|
|
|
text-align: left;
|
|
|
|
|
margin: 8px;
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.model-property-list {
|
|
|
|
|
padding: 0px 10px;
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 18:34:49 +08:00
|
|
|
|
.info-list {
|
|
|
|
|
padding: 10px;
|
|
|
|
|
}
|
2025-06-19 17:11:30 +08:00
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.model-progress {
|
|
|
|
|
padding: 10px;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.el-progress-bar {
|
|
|
|
|
.el-progress-bar__innerText {
|
|
|
|
|
color: #fff !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-06-18 11:50:49 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.loading {
|
|
|
|
|
height: 50px;
|
|
|
|
|
margin: 10px;
|
|
|
|
|
line-height: 50px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: #edffff85;
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.group-info {
|
|
|
|
|
padding: 4px 0px;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.svg-icon {
|
|
|
|
|
fill: #45fdfe;
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
span {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
.my-table {
|
|
|
|
|
border-collapse: collapse;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
td,
|
|
|
|
|
th {
|
|
|
|
|
border: solid 1px #0e0f0f88;
|
|
|
|
|
background: #10569688;
|
|
|
|
|
padding: 6px 4px;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
text-align: left;
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-19 17:11:30 +08:00
|
|
|
|
th {
|
|
|
|
|
color: #22d3f4;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-24 15:21:35 +08:00
|
|
|
|
@media (min-width: 2561px) {
|
|
|
|
|
.data-content {
|
|
|
|
|
.div-row {
|
|
|
|
|
&.r33 {
|
|
|
|
|
height: 210px;
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-24 15:21:35 +08:00
|
|
|
|
&.r66 {
|
|
|
|
|
height: calc(100% - 210px);
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-24 15:21:35 +08:00
|
|
|
|
.row-title {
|
|
|
|
|
height: 48px;
|
|
|
|
|
line-height: 48px;
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-07-07 16:50:04 +08:00
|
|
|
|
.div-right {
|
|
|
|
|
.clear-all-btn {
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
margin: 12px;
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-07-07 16:50:04 +08:00
|
|
|
|
.hide-list {
|
|
|
|
|
height: calc(100% - 80px);
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-07-07 16:50:04 +08:00
|
|
|
|
.hide-item {
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
margin-bottom: 12px;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-07-07 16:50:04 +08:00
|
|
|
|
.hide-item-delete {
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-24 15:21:35 +08:00
|
|
|
|
.div-tools {
|
|
|
|
|
margin-left: -300px;
|
|
|
|
|
border-radius: 10px;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-24 15:21:35 +08:00
|
|
|
|
.tool-item {
|
|
|
|
|
padding: 10px 20px;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-24 15:21:35 +08:00
|
|
|
|
.icon {
|
|
|
|
|
width: 60px;
|
|
|
|
|
height: 60px;
|
|
|
|
|
border-radius: 30px;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-24 15:21:35 +08:00
|
|
|
|
.svg-icon {
|
|
|
|
|
width: 40px;
|
|
|
|
|
height: 40px;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-24 15:21:35 +08:00
|
|
|
|
.sp-text {
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.model-tree {
|
|
|
|
|
.el-tree {
|
|
|
|
|
font-size: 24px;
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-24 15:21:35 +08:00
|
|
|
|
.el-tree-node__content {
|
|
|
|
|
height: 36px;
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-24 15:21:35 +08:00
|
|
|
|
.el-tree-node__expand-icon {
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-24 15:21:35 +08:00
|
|
|
|
.el-checkbox {
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-24 15:21:35 +08:00
|
|
|
|
.el-tree-node__label {
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-24 15:21:35 +08:00
|
|
|
|
.el-tree__empty-text {
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.group-info {
|
|
|
|
|
.svg-icon {
|
|
|
|
|
width: 30px;
|
|
|
|
|
height: 30px;
|
|
|
|
|
}
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-24 15:21:35 +08:00
|
|
|
|
span {
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
position: relative;
|
2025-07-03 18:37:00 +08:00
|
|
|
|
top: -6px;
|
2025-06-24 15:21:35 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.my-table {
|
2025-07-26 15:21:53 +08:00
|
|
|
|
|
2025-06-24 15:21:35 +08:00
|
|
|
|
td,
|
|
|
|
|
th {
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-06-18 11:50:49 +08:00
|
|
|
|
}
|
2025-06-19 17:11:30 +08:00
|
|
|
|
</style>
|