diff --git a/src/views/crm/business/BusinessForm.vue b/src/views/crm/business/BusinessForm.vue index 04f1cf5d..53f5cb8d 100644 --- a/src/views/crm/business/BusinessForm.vue +++ b/src/views/crm/business/BusinessForm.vue @@ -10,6 +10,7 @@ + - + 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() // 消息弹窗 @@ -233,10 +229,12 @@ const resetForm = () => { } formRef.value?.resetFields() } -const changeBusinessStatusType = async (id) => { - // 加载商机状态列表 - businessStatusList.value = await BusinessStatusTypeApi.getBusinessStatusListByTypeId(id) + +/** 加载商机状态列表 */ +const changeBusinessStatusType = async (typeId: number) => { + businessStatusList.value = await BusinessStatusTypeApi.getBusinessStatusListByTypeId(typeId) } + const queryParams = reactive({ pageNo: 1, pageSize: 10, diff --git a/src/views/crm/businessStatusType/BusinessStatusTypeForm.vue b/src/views/crm/businessStatusType/BusinessStatusTypeForm.vue index 2ba71128..edf41966 100644 --- a/src/views/crm/businessStatusType/BusinessStatusTypeForm.vue +++ b/src/views/crm/businessStatusType/BusinessStatusTypeForm.vue @@ -23,22 +23,12 @@ - + - + @@ -50,10 +40,13 @@ @@ -69,8 +62,8 @@