|
@@ -62,13 +62,13 @@
|
|
<!-- 弹窗 开始-->
|
|
<!-- 弹窗 开始-->
|
|
|
|
|
|
<!-- 模型日志弹窗 -->
|
|
<!-- 模型日志弹窗 -->
|
|
- <!-- <modelLog
|
|
|
|
|
|
+ <modelLog
|
|
:modelLogVisible="modelLogVisible"
|
|
:modelLogVisible="modelLogVisible"
|
|
:modelFolderName="currentFolderName"
|
|
:modelFolderName="currentFolderName"
|
|
@deleteFinish="updataLog"
|
|
@deleteFinish="updataLog"
|
|
@CloseModelLogDia="modelLogVisible = false"
|
|
@CloseModelLogDia="modelLogVisible = false"
|
|
:logData="logData"
|
|
:logData="logData"
|
|
- ></modelLog> -->
|
|
|
|
|
|
+ ></modelLog>
|
|
<!-- 替换模型弹窗 -->
|
|
<!-- 替换模型弹窗 -->
|
|
<replice-model
|
|
<replice-model
|
|
:repliceModelVisible="repliceModelVisible"
|
|
:repliceModelVisible="repliceModelVisible"
|
|
@@ -113,11 +113,12 @@
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
import { Vue, Component, Watch } from "vue-property-decorator";
|
|
import { Vue, Component, Watch } from "vue-property-decorator";
|
|
import { UserModule } from "@/store/modules/user";
|
|
import { UserModule } from "@/store/modules/user";
|
|
-import { queryModel, queryFloorList } from "@/api/modelapi";
|
|
|
|
|
|
+import { queryModel, queryFloorList, queryModelFile } from "@/api/modelapi";
|
|
import Bus from "@/utils/bus";
|
|
import Bus from "@/utils/bus";
|
|
import FloorTable from "./components/FloorTable/index.vue"; //右侧list表
|
|
import FloorTable from "./components/FloorTable/index.vue"; //右侧list表
|
|
import AddFloorDialog from "./components/AddFloorDialog/index.vue"; //新增楼层弹窗
|
|
import AddFloorDialog from "./components/AddFloorDialog/index.vue"; //新增楼层弹窗
|
|
import RepliceModel from "./components/RepliceModel/index.vue"; //替换模型弹窗
|
|
import RepliceModel from "./components/RepliceModel/index.vue"; //替换模型弹窗
|
|
|
|
+import ModelLog from "./components/ModelLog/index.vue"; //模型日志弹窗
|
|
|
|
|
|
@Component({
|
|
@Component({
|
|
name: "buildFloor",
|
|
name: "buildFloor",
|
|
@@ -125,6 +126,7 @@ import RepliceModel from "./components/RepliceModel/index.vue"; //替换模型
|
|
FloorTable,
|
|
FloorTable,
|
|
AddFloorDialog,
|
|
AddFloorDialog,
|
|
RepliceModel,
|
|
RepliceModel,
|
|
|
|
+ ModelLog,
|
|
},
|
|
},
|
|
})
|
|
})
|
|
export default class extends Vue {
|
|
export default class extends Vue {
|
|
@@ -134,6 +136,7 @@ export default class extends Vue {
|
|
private modelLogVisible = false; // 是否显示模型日志弹窗
|
|
private modelLogVisible = false; // 是否显示模型日志弹窗
|
|
private changeFolderNameVisible = false; // 是否显示编辑文件夹弹窗
|
|
private changeFolderNameVisible = false; // 是否显示编辑文件夹弹窗
|
|
|
|
|
|
|
|
+ private modelLogFloorName = ""; // 楼层名称
|
|
private navigationBuild: any[] = []; // 文件夹模型list
|
|
private navigationBuild: any[] = []; // 文件夹模型list
|
|
private choiceIndex = 0; // 当前文件夹index
|
|
private choiceIndex = 0; // 当前文件夹index
|
|
private currentFolderId = ""; // 当前选择的文件夹id
|
|
private currentFolderId = ""; // 当前选择的文件夹id
|
|
@@ -141,7 +144,7 @@ export default class extends Vue {
|
|
private tableData = []; // 楼层列表
|
|
private tableData = []; // 楼层列表
|
|
private loading = false; // 加载loading
|
|
private loading = false; // 加载loading
|
|
private tableLoading = false; // 表格加载loading
|
|
private tableLoading = false; // 表格加载loading
|
|
-
|
|
|
|
|
|
+ private logData: any[] = []; // 楼层文件对应的模型日志
|
|
private replaceModelItem = null; // 替换文件的item
|
|
private replaceModelItem = null; // 替换文件的item
|
|
|
|
|
|
private get projectId(): string {
|
|
private get projectId(): string {
|
|
@@ -263,8 +266,33 @@ export default class extends Vue {
|
|
/**
|
|
/**
|
|
* 查看模型日志
|
|
* 查看模型日志
|
|
*/
|
|
*/
|
|
- private queryModelLog(item: any): void {
|
|
|
|
- console.log(item);
|
|
|
|
|
|
+ private async queryModelLog(item: any): Promise<void> {
|
|
|
|
+ this.modelLogFloorName = item.FloorName;
|
|
|
|
+ if (item.Id) {
|
|
|
|
+ const params = {
|
|
|
|
+ Distince: true,
|
|
|
|
+ Filters: `FloorModelId='${item.Id}';Removed=false`,
|
|
|
|
+ Orders: "Version desc",
|
|
|
|
+ };
|
|
|
|
+ const res = await queryModelFile(params);
|
|
|
|
+ if (res.Result == "success") {
|
|
|
|
+ this.logData = res.Content;
|
|
|
|
+ this.modelLogVisible = true;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 刷新日志
|
|
|
|
+ */
|
|
|
|
+ private async updataLog(FloorModelId: string): Promise<void> {
|
|
|
|
+ const params = {
|
|
|
|
+ Distince: true,
|
|
|
|
+ Filters: `FloorModelId='${FloorModelId}';Removed=false`,
|
|
|
|
+ Orders: "Version desc",
|
|
|
|
+ };
|
|
|
|
+ const res = await queryModelFile(params);
|
|
|
|
+ if (res.Result == "success") this.logData = res.Content;
|
|
}
|
|
}
|
|
|
|
|
|
@Watch("projectId")
|
|
@Watch("projectId")
|