diff --git a/yanzhu-bigscreen/public/css/login.css b/yanzhu-bigscreen/public/css/login.css
index 4248e69d..b09ca250 100644
--- a/yanzhu-bigscreen/public/css/login.css
+++ b/yanzhu-bigscreen/public/css/login.css
@@ -31,13 +31,6 @@ body{
position: relative;
overflow: auto;
}
-.login-bgd{
- position: relative;
- height: 100%;
- width:1400px;
- background: url("../images/login_bgd.png") no-repeat 50%;
- background-size: cover;
-}
.login-max{
height: 100%;
position: relative;
diff --git a/yanzhu-bigscreen/public/images/830.png b/yanzhu-bigscreen/public/images/830.png
deleted file mode 100644
index ea1196bc..00000000
Binary files a/yanzhu-bigscreen/public/images/830.png and /dev/null differ
diff --git a/yanzhu-bigscreen/public/images/gongdi.jpeg b/yanzhu-bigscreen/public/images/gongdi.jpeg
deleted file mode 100644
index ac78f2dc..00000000
Binary files a/yanzhu-bigscreen/public/images/gongdi.jpeg and /dev/null differ
diff --git a/yanzhu-bigscreen/public/images/login_bgd.png b/yanzhu-bigscreen/public/images/login_bgd.png
deleted file mode 100644
index f19e233d..00000000
Binary files a/yanzhu-bigscreen/public/images/login_bgd.png and /dev/null differ
diff --git a/yanzhu-bigscreen/public/images/login_bgd1.jpg b/yanzhu-bigscreen/public/images/login_bgd1.jpg
deleted file mode 100644
index 1a4d2272..00000000
Binary files a/yanzhu-bigscreen/public/images/login_bgd1.jpg and /dev/null differ
diff --git a/yanzhu-bigscreen/public/images/sjk.jpg b/yanzhu-bigscreen/public/images/sjk.jpg
deleted file mode 100644
index 21fb9220..00000000
Binary files a/yanzhu-bigscreen/public/images/sjk.jpg and /dev/null differ
diff --git a/yanzhu-bigscreen/src/views/bim/briefingTools.js b/yanzhu-bigscreen/src/views/bim/briefingTools.js
index b2145fe8..b01ff7a5 100644
--- a/yanzhu-bigscreen/src/views/bim/briefingTools.js
+++ b/yanzhu-bigscreen/src/views/bim/briefingTools.js
@@ -69,37 +69,62 @@ function getProperty(that) {
});
}
+function getModelUnit(that, modelId) {
+ let find = that.models.find((d) => d.modelId == modelId);
+ return find ? find.unit || 1.0 : 1.0;
+}
+
/**
* 获取构件尺寸信息
*/
function subFeatureSize(that) {
+ let api = bimBriefingApi;
+ let result = [
+ { name: "构建尺寸", data: [] },
+ { name: "构建表面积", data: [] },
+ { name: "构建体积", data: [] },
+ ];
+ that.info = [];
+ api.Public.clearHandler(), api.Measurement.clearAllTrace();
+ api.Feature.getByEvent(true, (n) => {
+ if (n && n["id"]) {
+ let featureId = n.id;
+ let modelId = featureId.split("^")[0];
+ let unit = getModelUnit(that, modelId);
+ clearSelectFeature(that);
+ api.Feature.getGeometrySizeById(featureId, (res) => {
+ let size = res.size || {};
+ let x = (size.x || 0) * unit * 1.0;
+ let y = (size.y || 0) * unit * 1.0;
+ let z = (size.z || 0) * unit * 1.0;
+ result[0].data = [
+ { name: "长", value: x.toFixed(2) + "" },
+ { name: "宽", value: y.toFixed(2) + "" },
+ { name: "高", value: z.toFixed(2) + "" },
+ ];
+ result[1].data = [{ name: "面积", value: (x * y).toFixed(2) + "" }];
+ result[2].data = [{ name: "体积", value: (x * y * z).toFixed(2) }];
+ api.Feature.setColor(featureId, "rgba(255,0,255,1)", modelId);
+ that.selFeatureId = featureId;
+ that.info = result;
+ // api.Measurement.featureArea(featureId, (res) => {
+ // result[1].data = [{ name: "面积", value: ((+res || 0) * unit * unit * 1.0).toFixed(2) + "" }];
+ // api.Measurement.featureVolume(featureId, (res) => {
+ // result[2].data = [{ name: "体积", value: ((+res || 0) * unit * unit * unit * 1.0).toFixed(2) }];
+ // api.Feature.setColor(featureId, "rgba(255,0,255,1)", modelId);
+ // that.selFeatureId = featureId;
+ // that.info=result
+ // });
+ // });
+ });
+ }
+ });
+}
+//构件面积
+function measurementArea(that) {
let api = bimBriefingApi;
that.info = [];
api.Public.clearHandler(), api.Measurement.clearAllTrace();
- api.Feature.getByEvent(true, (n) => {
- console.log(n);
- if (n && n["id"]) {
- let featureId = n.id;
- let modelId = featureId.split("^")[0];
- clearSelectFeature(that);
- api.Feature.getGeometrySizeById(featureId, (res) => {
- let size = res.size || {};
- that.info = [
- { name: "长", value: (size.x || 0).toFixed(2) + "" },
- { name: "宽", value: (size.y || 0).toFixed(2) + "" },
- { name: "高", value: (size.z || 0).toFixed(2) + "" },
- ];
- api.Feature.setColor(featureId, "rgba(255,0,255,1)", modelId);
- that.selFeatureId = featureId;
- });
- }
- });
-}
-//构件面积
-function measurementArea(that) {
- let api = bimBriefingApi;
- that.info = [];
- api.Public.clearHandler(), api.Measurement.clearAllTrace();
api.Feature.getByEvent(true, (n) => {
console.log(n);
if (n && n["id"]) {
@@ -107,9 +132,7 @@ function measurementArea(that) {
let modelId = featureId.split("^")[0];
clearSelectFeature(that);
api.Measurement.featureArea(featureId, (res) => {
- that.info = [
- { name: "面积", value: (+res || 0).toFixed(2) + "" }
- ];
+ that.info = [{ name: "面积", value: (+res || 0).toFixed(2) + "" }];
api.Feature.setColor(featureId, "rgba(255,0,255,1)", modelId);
that.selFeatureId = featureId;
});
@@ -118,23 +141,15 @@ function measurementArea(that) {
}
//构件体积
-function measuringVolume(that){
-
-}
+function measuringVolume(that) {}
//构件距离
-function distance(that){
-
-}
+function distance(that) {}
//剖切
-function initClipping(that){
-
-}
+function initClipping(that) {}
//构件隐藏
-function actorVisible(){
-
-}
+function actorVisible() {}
export default {
measurementArea,
diff --git a/yanzhu-bigscreen/src/views/bimBriefing.vue b/yanzhu-bigscreen/src/views/bimBriefing.vue
index 98ba4004..79282b8f 100644
--- a/yanzhu-bigscreen/src/views/bimBriefing.vue
+++ b/yanzhu-bigscreen/src/views/bimBriefing.vue
@@ -67,12 +67,22 @@
-
-
- {{ item.name }} |
- {{ item.value }} |
-
-
+
+
+
+ {{ item.name }}
+
+
+
+ {{ item2.name }} |
+ {{ item2.value }}
+ 米
+ 米2
+ 米3
+ |
+
+
+
@@ -116,14 +126,14 @@
-