fl-web-component 1.2.11 → 1.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/fl-web-component.common.1.js +15 -15
- package/dist/fl-web-component.common.1.js.map +1 -1
- package/dist/fl-web-component.common.2.js.map +1 -1
- package/dist/fl-web-component.common.3.js.map +1 -1
- package/dist/fl-web-component.common.js +160 -115
- package/dist/fl-web-component.common.js.map +1 -1
- package/dist/fl-web-component.css +1 -1
- package/package.json +1 -1
- package/packages/components/com-flcanvas/index.vue +2 -2
- package/packages/components/com-graphics/index.vue +31 -6
- package/src/utils/flgltf-parser.js +68 -50
- package/src/utils/instance-parser.js +39 -30
- package/packages/components/button/index.vue +0 -26
- package/packages/components/model/api/index.js +0 -421
- package/packages/components/model/api/mock/detecttree.js +0 -58
- package/packages/components/model/api/mock/getmodel-line.js +0 -15834
- package/packages/components/model/api/mock/init.js +0 -1
- package/packages/components/model/api/mock/pbstree.js +0 -826
- package/packages/components/model/api/mock/topology.json +0 -3238
- package/packages/components/model/components/TextOverTooltip/index.vue +0 -84
- package/packages/components/model/components/annotation-toolbar.vue +0 -410
- package/packages/components/model/components/check-proofing-model.vue +0 -39
- package/packages/components/model/components/clipping-type.vue +0 -59
- package/packages/components/model/components/com-dialogWrapper/Readme.md +0 -53
- package/packages/components/model/components/com-dialogWrapper/index.vue +0 -114
- package/packages/components/model/components/detect-panel.vue +0 -339
- package/packages/components/model/components/detect-tree.vue +0 -445
- package/packages/components/model/components/firstPer-panel.vue +0 -109
- package/packages/components/model/components/header-button.vue +0 -470
- package/packages/components/model/components/imageViewer/index.vue +0 -126
- package/packages/components/model/components/import-model.vue +0 -127
- package/packages/components/model/components/location-panel.vue +0 -91
- package/packages/components/model/components/measure-type.vue +0 -59
- package/packages/components/model/components/pbs-tree.vue +0 -497
- package/packages/components/model/components/proof-config.vue +0 -72
- package/packages/components/model/components/proof-for-pc.vue +0 -126
- package/packages/components/model/components/proof-history.vue +0 -300
- package/packages/components/model/components/proof-panel-detail.vue +0 -568
- package/packages/components/model/components/proof-panel.vue +0 -846
- package/packages/components/model/components/proof-project-user.vue +0 -445
- package/packages/components/model/components/proof-publish.vue +0 -130
- package/packages/components/model/components/proof-role.vue +0 -504
- package/packages/components/model/components/props-panel.vue +0 -258
- package/packages/components/model/index.vue +0 -3425
- package/packages/components/model/readme.md +0 -31
- package/packages/components/model/utils/annotation-tool.js +0 -333
- package/packages/components/model/utils/cursor.js +0 -23
- package/packages/components/model/utils/detect-v1.js +0 -329
- package/packages/components/model/utils/index.js +0 -48
- package/packages/components/model/utils/threejs/measure-angle.js +0 -258
- package/packages/components/model/utils/threejs/measure-area.js +0 -281
- package/packages/components/model/utils/threejs/measure-distance.js +0 -209
- package/packages/components/model/utils/threejs/measure-volume.js +0 -97
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="box-card" style="height: calc(100vh - 134px)">
|
|
3
|
-
<div class="box-title">
|
|
4
|
-
<span class="box-title-desc">属性</span>
|
|
5
|
-
<i
|
|
6
|
-
class="el-icon-close box-title-close"
|
|
7
|
-
style="cursor: pointer"
|
|
8
|
-
@click="$emit('rightOperation', 'property')"
|
|
9
|
-
/>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<el-scrollbar>
|
|
13
|
-
<el-card class="" ref="card" id="box-card">
|
|
14
|
-
<el-collapse class="property-box" v-model="activeNames">
|
|
15
|
-
<el-collapse-item name="基本信息">
|
|
16
|
-
<template slot="title">
|
|
17
|
-
<div class="title-content">
|
|
18
|
-
<span>基本信息</span>
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|
|
21
|
-
<div v-if="propDataLength">
|
|
22
|
-
<div
|
|
23
|
-
v-for="(value, name, index) in propData"
|
|
24
|
-
:key="index"
|
|
25
|
-
class="text item info-item"
|
|
26
|
-
>
|
|
27
|
-
<p class="property-key" :title="name">{{ name }}</p>
|
|
28
|
-
<p class="property-value" :title="value">{{ value }}</p>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
<el-empty v-else :image-size="50" description="暂无数据"></el-empty>
|
|
32
|
-
</el-collapse-item>
|
|
33
|
-
</el-collapse>
|
|
34
|
-
</el-card>
|
|
35
|
-
</el-scrollbar>
|
|
36
|
-
</div>
|
|
37
|
-
</template>
|
|
38
|
-
<script>
|
|
39
|
-
import * as modelApi from '../api/index';
|
|
40
|
-
export default {
|
|
41
|
-
name: 'Details',
|
|
42
|
-
// props: {
|
|
43
|
-
// id: {
|
|
44
|
-
// type: String,
|
|
45
|
-
// default() {
|
|
46
|
-
// return null
|
|
47
|
-
// }
|
|
48
|
-
// },
|
|
49
|
-
// projectId: {
|
|
50
|
-
// type: String,
|
|
51
|
-
// default() {
|
|
52
|
-
// return ''
|
|
53
|
-
// }
|
|
54
|
-
// },
|
|
55
|
-
// folderId: {
|
|
56
|
-
// type: String,
|
|
57
|
-
// default() {
|
|
58
|
-
// return ''
|
|
59
|
-
// }
|
|
60
|
-
// },
|
|
61
|
-
// },
|
|
62
|
-
data() {
|
|
63
|
-
return {
|
|
64
|
-
basicData: [],
|
|
65
|
-
propData: {},
|
|
66
|
-
docData: [],
|
|
67
|
-
otherData: [],
|
|
68
|
-
activeNames: ['基本信息'],
|
|
69
|
-
};
|
|
70
|
-
},
|
|
71
|
-
computed: {
|
|
72
|
-
propDataLength() {
|
|
73
|
-
return Object.keys(this.propData).length;
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
methods: {
|
|
77
|
-
// 通过entityId获取图元的属性 图元的id 项目的id
|
|
78
|
-
getModelProperty({ propertyGroup, modelId }) {
|
|
79
|
-
const property = propertyGroup[modelId];
|
|
80
|
-
this.$set(this, 'propData', property ? property : {});
|
|
81
|
-
// modelApi.getModelProperty(params).then(res => {
|
|
82
|
-
// // if(this.lodash.isEmpty(res)) {
|
|
83
|
-
// // this.$message({type: 'warning', message: '暂无属性数据'})
|
|
84
|
-
// // return
|
|
85
|
-
// // }
|
|
86
|
-
// console.log(res)
|
|
87
|
-
// // this.$set(this, 'basicData', res['basic'] ? res['basic']: [])
|
|
88
|
-
// this.$set(this, 'propData', res ? res: {})
|
|
89
|
-
// // this.$set(this, 'docData', res['doc'] ? res['doc'] : [])
|
|
90
|
-
// }).catch((err) => {
|
|
91
|
-
// // this.basicData.splice(0)
|
|
92
|
-
// // this.propData.splice(0)
|
|
93
|
-
// // this.docData.splice(0)
|
|
94
|
-
// // this.$message({type: 'error', message: err.msg})
|
|
95
|
-
// })
|
|
96
|
-
},
|
|
97
|
-
// 清空属性信息
|
|
98
|
-
resetProperties() {
|
|
99
|
-
// this.basicData.splice(0)
|
|
100
|
-
this.propData = {};
|
|
101
|
-
// this.docData.splice(0)
|
|
102
|
-
},
|
|
103
|
-
// 预览
|
|
104
|
-
handleView(data) {
|
|
105
|
-
const url = data.split(',')[0];
|
|
106
|
-
window.open(url);
|
|
107
|
-
// window.open('http://view.officeapps.live.com/op/view.aspx?src='+ url)
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
destroyed() {
|
|
111
|
-
window.onresize = null;
|
|
112
|
-
},
|
|
113
|
-
};
|
|
114
|
-
</script>
|
|
115
|
-
<style lang="scss" scoped>
|
|
116
|
-
.box-title {
|
|
117
|
-
font-size: 16px;
|
|
118
|
-
// color: #fff;
|
|
119
|
-
}
|
|
120
|
-
.details-box {
|
|
121
|
-
// position: fixed;
|
|
122
|
-
// height: calc(100% - 200px);
|
|
123
|
-
width: 300px;
|
|
124
|
-
padding: 30px 20px;
|
|
125
|
-
// right: 76px;
|
|
126
|
-
// top: 100px;
|
|
127
|
-
border: none;
|
|
128
|
-
background: #1e1e1e99;
|
|
129
|
-
border-radius: 10px;
|
|
130
|
-
box-sizing: border-box;
|
|
131
|
-
z-index: 10;
|
|
132
|
-
}
|
|
133
|
-
.box-card {
|
|
134
|
-
padding-top: 0;
|
|
135
|
-
padding-bottom: 0;
|
|
136
|
-
background: #fff;
|
|
137
|
-
width: 300px;
|
|
138
|
-
.box-title {
|
|
139
|
-
display: flex;
|
|
140
|
-
justify-content: space-between;
|
|
141
|
-
align-items: center;
|
|
142
|
-
height: 52px;
|
|
143
|
-
line-height: 52px;
|
|
144
|
-
padding-left: 8px;
|
|
145
|
-
padding-right: 8px;
|
|
146
|
-
border-bottom: 1px solid #dfdfdf;
|
|
147
|
-
.box-title-desc {
|
|
148
|
-
font-size: 14px;
|
|
149
|
-
font-weight: bold;
|
|
150
|
-
}
|
|
151
|
-
.box-title-close {
|
|
152
|
-
font-size: 24px;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
#box-card {
|
|
157
|
-
border-bottom: none;
|
|
158
|
-
}
|
|
159
|
-
::v-deep .el-card__body {
|
|
160
|
-
height: 100%;
|
|
161
|
-
overflow: auto;
|
|
162
|
-
padding: 0;
|
|
163
|
-
}
|
|
164
|
-
.title {
|
|
165
|
-
font-size: 16px;
|
|
166
|
-
}
|
|
167
|
-
::v-deep .el-collapse-item__content {
|
|
168
|
-
padding-bottom: 0px;
|
|
169
|
-
}
|
|
170
|
-
.text {
|
|
171
|
-
font-size: 12px;
|
|
172
|
-
// color: #fff;
|
|
173
|
-
}
|
|
174
|
-
.item {
|
|
175
|
-
padding: 5px;
|
|
176
|
-
span {
|
|
177
|
-
word-break: break-all;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
.info-item {
|
|
181
|
-
display: grid;
|
|
182
|
-
grid-template-columns: 55% 45%;
|
|
183
|
-
}
|
|
184
|
-
.property-box {
|
|
185
|
-
margin-bottom: 10px;
|
|
186
|
-
.title-content {
|
|
187
|
-
padding-left: 10px;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
.property-title {
|
|
191
|
-
line-height: 24px;
|
|
192
|
-
font-size: 14px;
|
|
193
|
-
// color: #fff;
|
|
194
|
-
border-bottom: 1px solid #fff;
|
|
195
|
-
margin-bottom: 10px;
|
|
196
|
-
}
|
|
197
|
-
.empty-tips {
|
|
198
|
-
// color: #fff;
|
|
199
|
-
text-align: center;
|
|
200
|
-
}
|
|
201
|
-
::v-deep .has-gutter {
|
|
202
|
-
background: rgba(44, 76, 124, 0.2);
|
|
203
|
-
}
|
|
204
|
-
::v-deep .el-collapse {
|
|
205
|
-
border-top: none;
|
|
206
|
-
}
|
|
207
|
-
::v-deep .el-collapse-item__header {
|
|
208
|
-
height: 36px;
|
|
209
|
-
line-height: 36px;
|
|
210
|
-
background: #f4f7fa;
|
|
211
|
-
// color: #fff;
|
|
212
|
-
font-size: 14px;
|
|
213
|
-
}
|
|
214
|
-
::v-deep .el-collapse-item__wrap {
|
|
215
|
-
padding: 0 10px;
|
|
216
|
-
border-bottom: none;
|
|
217
|
-
// background: rgba(30, 30, 30, 0.6);
|
|
218
|
-
}
|
|
219
|
-
::v-deep .el-collapse-item__arrow {
|
|
220
|
-
margin: 0 20px 0 auto;
|
|
221
|
-
}
|
|
222
|
-
.collapse-img {
|
|
223
|
-
display: inline-block;
|
|
224
|
-
vertical-align: middle;
|
|
225
|
-
margin-right: 10px;
|
|
226
|
-
}
|
|
227
|
-
.doc-item {
|
|
228
|
-
display: flex;
|
|
229
|
-
flex-direction: row;
|
|
230
|
-
}
|
|
231
|
-
.doc-name {
|
|
232
|
-
flex: 1;
|
|
233
|
-
white-space: nowrap;
|
|
234
|
-
text-overflow: ellipsis;
|
|
235
|
-
overflow: hidden;
|
|
236
|
-
}
|
|
237
|
-
.view-doc {
|
|
238
|
-
width: 40px;
|
|
239
|
-
text-align: center;
|
|
240
|
-
color: #3afdff;
|
|
241
|
-
cursor: pointer;
|
|
242
|
-
}
|
|
243
|
-
.property-key,
|
|
244
|
-
.property-value {
|
|
245
|
-
word-wrap: break-word;
|
|
246
|
-
word-break: break-all;
|
|
247
|
-
white-space: nowrap;
|
|
248
|
-
overflow: hidden;
|
|
249
|
-
text-overflow: ellipsis;
|
|
250
|
-
margin: 0;
|
|
251
|
-
}
|
|
252
|
-
.property-value {
|
|
253
|
-
text-indent: 5px;
|
|
254
|
-
}
|
|
255
|
-
::v-deep .el-scrollbar {
|
|
256
|
-
height: calc(100% - 53px);
|
|
257
|
-
}
|
|
258
|
-
</style>
|