|
@@ -34,10 +34,10 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="model-desc" v-if="active">
|
|
<div class="model-desc" v-if="active">
|
|
|
<p><span>数据来源:</span>{{ model.raw.sourceName }}</p>
|
|
<p><span>数据来源:</span>{{ model.raw.sourceName }}</p>
|
|
|
- <p v-if="![SceneType.SWSS, SceneType.SWYDSS].includes(model.type)">
|
|
|
|
|
|
|
+ <p v-if="![SceneType.SWSS, SceneType.SWYDSS, SceneType.SWSX].includes(model.type)">
|
|
|
<span>数据大小:</span>{{ model.size }}
|
|
<span>数据大小:</span>{{ model.size }}
|
|
|
</p>
|
|
</p>
|
|
|
- <p v-if="model.type !== SceneType.SWMX"><span>拍摄时间:</span>{{ model.time }}</p>
|
|
|
|
|
|
|
+ <p v-if="model.type !== SceneType.SWMX"><span>拍摄时间:</span>{{ getTime(model.time) }}</p>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -46,7 +46,7 @@
|
|
|
import { getFuseModelShowVariable, SceneTypeDesc, SceneType } from "@/store";
|
|
import { getFuseModelShowVariable, SceneTypeDesc, SceneType } from "@/store";
|
|
|
import { custom } from "@/env";
|
|
import { custom } from "@/env";
|
|
|
import { getSceneModel } from "@/sdk";
|
|
import { getSceneModel } from "@/sdk";
|
|
|
-
|
|
|
|
|
|
|
+import { formatDate } from "@/utils";
|
|
|
import type { FuseModel } from "@/store";
|
|
import type { FuseModel } from "@/store";
|
|
|
import { computed, onMounted, ref, watchEffect } from "vue";
|
|
import { computed, onMounted, ref, watchEffect } from "vue";
|
|
|
import { currentModel, fuseModel } from "@/model";
|
|
import { currentModel, fuseModel } from "@/model";
|
|
@@ -70,7 +70,10 @@ type ModelEmits = {
|
|
|
};
|
|
};
|
|
|
defineEmits<ModelEmits>();
|
|
defineEmits<ModelEmits>();
|
|
|
onMounted(() => console.error("mount", custom.showModelsMap.get(props.model)));
|
|
onMounted(() => console.error("mount", custom.showModelsMap.get(props.model)));
|
|
|
-
|
|
|
|
|
|
|
+const getTime = (time:any) => {
|
|
|
|
|
+ const date = new Date(time);
|
|
|
|
|
+ return date ? formatDate(date) : '';
|
|
|
|
|
+};
|
|
|
const supportPano = ref(false);
|
|
const supportPano = ref(false);
|
|
|
const show = getFuseModelShowVariable(props.model);
|
|
const show = getFuseModelShowVariable(props.model);
|
|
|
watchEffect(() => {
|
|
watchEffect(() => {
|