Ver código fonte

refactor(订单/线索): 移除未使用的beforeOpen方法

yz 1 mês atrás
pai
commit
0821381d23
1 arquivos alterados com 0 adições e 22 exclusões
  1. 0 22
      src/views/order/lead/index.vue

+ 0 - 22
src/views/order/lead/index.vue

@@ -659,28 +659,6 @@ export default {
         },
 
         /**
-         * 新增前的回调
-         * @param {Function} done - 完成回调
-         * @param {string} type - 操作类型
-         */
-        async beforeOpen(done, type) {
-            // 确保客户选项已加载
-            if (this.customerOptions.length === 0) {
-                await this.loadCustomerOptions()
-            }
-
-            if (['edit', 'view'].includes(type)) {
-                try {
-                    const res = await getDetail(this.form.id)
-                    this.form = res.data.data
-                } catch (error) {
-                    console.error('获取详情失败:', error)
-                }
-            }
-            done()
-        },
-
-        /**
          * 获取数据
          * @param {Object} page - 分页信息
          * @param {LeadQueryParams} [params] - 查询参数