|
@@ -85,6 +85,8 @@ import saveAs from "@/util/file-serve";
|
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
|
|
|
|
|
const props = defineProps({ caseId: Number, title: String });
|
|
const props = defineProps({ caseId: Number, title: String });
|
|
|
|
|
+const emit = defineEmits(["change"]);
|
|
|
|
|
+
|
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
|
const vueRouter = useRouter();
|
|
const vueRouter = useRouter();
|
|
|
|
|
|
|
@@ -154,6 +156,7 @@ const changeList = async (list) => {
|
|
|
if (res.data && imgId) {
|
|
if (res.data && imgId) {
|
|
|
loadedDrawData.value = res.data?.data;
|
|
loadedDrawData.value = res.data?.data;
|
|
|
}
|
|
}
|
|
|
|
|
+ console.log("getCaseImgTagData111", res.data);
|
|
|
if ("isHorizontal" in res.data) {
|
|
if ("isHorizontal" in res.data) {
|
|
|
// console.error("sortType.value", sortType.value, !res.data.isHorizontal);
|
|
// console.error("sortType.value", sortType.value, !res.data.isHorizontal);
|
|
|
sortType.value = !res.data.isHorizontal;
|
|
sortType.value = !res.data.isHorizontal;
|
|
@@ -344,6 +347,7 @@ const handleSwitchGrid = async () => {
|
|
|
);
|
|
);
|
|
|
if (res) {
|
|
if (res) {
|
|
|
sortType.value = !sortType.value;
|
|
sortType.value = !sortType.value;
|
|
|
|
|
+ emit("change", !sortType.value);
|
|
|
window.scene.setMode(0);
|
|
window.scene.setMode(0);
|
|
|
window.scene.clearScene();
|
|
window.scene.clearScene();
|
|
|
handleClear();
|
|
handleClear();
|
|
@@ -397,6 +401,7 @@ const handleSave = async () => {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const handleAutoSave = async (id) => {
|
|
const handleAutoSave = async (id) => {
|
|
|
|
|
+ alert("handleAutoSave");
|
|
|
if (window.scene) {
|
|
if (window.scene) {
|
|
|
const data = scene.player.getDrawData();
|
|
const data = scene.player.getDrawData();
|
|
|
scene.player.syncDrawData();
|
|
scene.player.syncDrawData();
|