cuiqian2004
2025-09-19 d8743368ffda9bc0fb2c6818f695a9a6b1079e57
pages/teaching/list.vue
@@ -44,6 +44,8 @@
      showToast,
      showModal,
      session,
      showError,
      showInfo
   } from "@/comm/utils.js"
   import {
      Button
@@ -129,7 +131,7 @@
            } catch (ex) {
               this.showError(ex)
               showError(ex)
            }
         },
@@ -141,7 +143,7 @@
               this.teachingPublic = data?.Public || []
               this.teachingStation = data?.Stations || []
            } catch (ex) {
               this.showError(ex)
               showError(ex)
            }
         },
         clickAddTeaching() {
@@ -225,7 +227,7 @@
            return tip
         },
         clickDelTeachingMode(mode, item) {
            showModal("确认删除示教", "警告").then((res) => {
            showModal("确认删除示教", "警告",true,"确定","取消").then((res) => {
               if (res) {
                  this.deleteTeachingMode(mode, item)
               }
@@ -259,18 +261,11 @@
               }
            } catch (ex) {
               this.showError(ex)
               showError(ex)
            }
         },
         showError(ex) {
            let exStr = JSON.stringify(ex)
            if (exStr == "{}")
               exStr = ex
            let tip = typeof ex.msg == "string" ? ex.msg : exStr
            showModal(tip, "错误", false)
         },
      }