|
@@ -8,21 +8,14 @@
|
|
|
|
|
|
|
|
|
<div class="boxchild">
|
|
|
- <el-button type="primary" size="mini" @click="createSmashing"
|
|
|
- >倾斜压平</el-button
|
|
|
- >
|
|
|
+ <el-button type="primary" size="mini" @click="createSmashing">倾斜压平</el-button>
|
|
|
<el-button type="primary" size="mini" @click="clear">{{
|
|
|
Resource.clear
|
|
|
}}</el-button>
|
|
|
</div>
|
|
|
<el-select v-model="value" placeholder="请选择对象">
|
|
|
- <el-option
|
|
|
- v-for="(item, index) in options"
|
|
|
- :key="index"
|
|
|
- :label="item.name"
|
|
|
- :value="item"
|
|
|
- @click.native="test(item)"
|
|
|
- >
|
|
|
+ <el-option v-for="(item, index) in options" :key="index" :label="item.name" :value="item"
|
|
|
+ @click.native="test(item)">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
@@ -38,14 +31,10 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
sharedState: store.state,
|
|
|
- handler_Cut_fill: new Cesium.DrawHandler(
|
|
|
- viewer,
|
|
|
- Cesium.DrawMode.Polygon,
|
|
|
- 0
|
|
|
- ),
|
|
|
+ handler_Cut_fill: null,
|
|
|
//存储压平数据名称
|
|
|
flattenNames: [],
|
|
|
- handlerTemp: new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas),
|
|
|
+ handlerTemp: null,
|
|
|
options: [],
|
|
|
value: "",
|
|
|
// primitive:undefined
|
|
@@ -61,13 +50,23 @@ export default {
|
|
|
return this.sharedState.toolBar[6];
|
|
|
},
|
|
|
},
|
|
|
- beforeDestroy() {},
|
|
|
+ beforeDestroy() { },
|
|
|
mounted() {
|
|
|
store.state.S3MList.forEach((s) => {
|
|
|
s.forEach((i) => {
|
|
|
this.options.push(i);
|
|
|
});
|
|
|
});
|
|
|
+
|
|
|
+ this.$nextTick((res) => {
|
|
|
+ this.handler_Cut_fill = new Cesium.DrawHandler(
|
|
|
+ viewer,
|
|
|
+ Cesium.DrawMode.Polygon,
|
|
|
+ 0
|
|
|
+ );
|
|
|
+
|
|
|
+ this.handlerTemp = new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas);
|
|
|
+ })
|
|
|
// console.log(this.options, "this.options");
|
|
|
},
|
|
|
methods: {
|