功能修改

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, 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