功能修改
This commit is contained in:
parent
7517040d8f
commit
1739c48795
|
|
@ -271,7 +271,7 @@ export default {
|
||||||
map: null,
|
map: null,
|
||||||
modelPreviewVisible: false,
|
modelPreviewVisible: false,
|
||||||
modelPreviewInfoList: [],
|
modelPreviewInfoList: [],
|
||||||
projectIdAll: '',
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -598,7 +598,6 @@ if (!modelUrl || !modelUrl.endsWith('.dxf')) {
|
||||||
|
|
||||||
if (res.length > 0) {
|
if (res.length > 0) {
|
||||||
this.queryParams.projectId = res[0].id
|
this.queryParams.projectId = res[0].id
|
||||||
this.projectIdAll = res[0].id
|
|
||||||
this.getModelList()
|
this.getModelList()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -656,8 +655,16 @@ if (!modelUrl || !modelUrl.endsWith('.dxf')) {
|
||||||
|
|
||||||
// 模型预览
|
// 模型预览
|
||||||
handleModelPreview() {
|
handleModelPreview() {
|
||||||
|
// 获取当前选中的项目 ID
|
||||||
openViewAll({projectId: this.projectIdAll})
|
const selectedProjectId = this.queryParams.projectId;
|
||||||
|
// 判断是否选中(非空)
|
||||||
|
if (selectedProjectId != null && selectedProjectId !== '') {
|
||||||
|
console.log('已选中项目 ID:', selectedProjectId);
|
||||||
|
// 执行你的逻辑
|
||||||
|
} else {
|
||||||
|
this.$modal.msgError('请选择项目')
|
||||||
|
}
|
||||||
|
openViewAll({projectId:selectedProjectId })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.modelPreviewInfoList = res.data
|
this.modelPreviewInfoList = res.data
|
||||||
this.modelPreviewVisible = true
|
this.modelPreviewVisible = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue