gemercheung 1 рік тому
батько
коміт
d621d1478f
1 змінених файлів з 12 додано та 2 видалено
  1. 12 2
      src/view/case/photos/index.vue

+ 12 - 2
src/view/case/photos/index.vue

@@ -19,7 +19,7 @@
         </el-button>
         <el-button
           type="primary"
-          @click="sortType = !sortType"
+          @click="handleSwitchGrid"
           :icon="sortType ? FullScreen : Menu"
           >{{ sortType ? "横排" : "竖排" }}</el-button
         >
@@ -185,7 +185,6 @@ const renderCanvas = () => {
     });
     if (res) {
       window.scene.deleteItemById(id, type);
-
     }
   });
   scene.on("data", (data) => {
@@ -238,6 +237,17 @@ const handleDetele = async (item) => {
     refresh();
   }
 };
+const handleSwitchGrid = async () => {
+  const res = await ElMessageBox.confirm("切换模版不包括标注内容,确定要切换吗?", "温馨提示", {
+    confirmButtonText: "确定",
+    cancelButtonText: "取消",
+    type: "default",
+  });
+  if (res) {
+    sortType.value = !sortType.value
+  }
+};
+
 const handleLine = () => {
   if (window.scene) {
     window.scene.setMode(1);