功能修改
This commit is contained in:
parent
7517040d8f
commit
1739c48795
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue