功能修改

This commit is contained in:
lSun 2025-11-07 13:27:21 +08:00
parent 7517040d8f
commit 1739c48795
1 changed files with 11 additions and 4 deletions

View File

@ -271,7 +271,7 @@ export default {
map: null,
modelPreviewVisible: false,
modelPreviewInfoList: [],
projectIdAll: '',
}
},
created() {
@ -598,7 +598,6 @@ if (!modelUrl || !modelUrl.endsWith('.dxf')) {
if (res.length > 0) {
this.queryParams.projectId = res[0].id
this.projectIdAll = res[0].id
this.getModelList()
}
},
@ -656,8 +655,16 @@ if (!modelUrl || !modelUrl.endsWith('.dxf')) {
//
handleModelPreview() {
openViewAll({projectId: this.projectIdAll})
// ID
const selectedProjectId = this.queryParams.projectId;
//
if (selectedProjectId != null && selectedProjectId !== '') {
console.log('已选中项目 ID:', selectedProjectId);
//
} else {
this.$modal.msgError('请选择项目')
}
openViewAll({projectId:selectedProjectId })
.then((res) => {
this.modelPreviewInfoList = res.data
this.modelPreviewVisible = true