From 85bd10a1fca93d2924932a879f5edaa9b6a9cb32 Mon Sep 17 00:00:00 2001 From: ljlleo Date: Fri, 24 Nov 2023 14:21:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E6=9C=BA=E3=80=81=E5=95=86=E6=9C=BA?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 50430bb9cd95ceed3f14ffa949037844f27d0a64) --- src/views/crm/business/BusinessForm.vue | 20 +++++---- .../BusinessStatusTypeForm.vue | 44 +++++++++++-------- 2 files changed, 36 insertions(+), 28 deletions(-) diff --git a/src/views/crm/business/BusinessForm.vue b/src/views/crm/business/BusinessForm.vue index 53f5cb8d..04f1cf5d 100644 --- a/src/views/crm/business/BusinessForm.vue +++ b/src/views/crm/business/BusinessForm.vue @@ -10,7 +10,6 @@ - - + import * as BusinessApi from '@/api/crm/business' import * as BusinessStatusTypeApi from '@/api/crm/businessStatusType' -import * as CustomerApi from '@/api/crm/customer' +import * as CustomerApi from "@/api/crm/customer"; import { DICT_TYPE } from '@/utils/dict' -import { ElTable } from 'element-plus' +import {ElTable} from "element-plus"; const { t } = useI18n() // 国际化 const message = useMessage() // 消息弹窗 @@ -229,12 +233,10 @@ const resetForm = () => { } formRef.value?.resetFields() } - -/** 加载商机状态列表 */ -const changeBusinessStatusType = async (typeId: number) => { - businessStatusList.value = await BusinessStatusTypeApi.getBusinessStatusListByTypeId(typeId) +const changeBusinessStatusType = async (id) => { + // 加载商机状态列表 + businessStatusList.value = await BusinessStatusTypeApi.getBusinessStatusListByTypeId(id) } - const queryParams = reactive({ pageNo: 1, pageSize: 10, diff --git a/src/views/crm/businessStatusType/BusinessStatusTypeForm.vue b/src/views/crm/businessStatusType/BusinessStatusTypeForm.vue index edf41966..2ba71128 100644 --- a/src/views/crm/businessStatusType/BusinessStatusTypeForm.vue +++ b/src/views/crm/businessStatusType/BusinessStatusTypeForm.vue @@ -23,12 +23,22 @@ - + - + @@ -40,13 +50,10 @@ @@ -62,8 +69,8 @@