From dace77fe0733f1c819c064276a7e7d57291cf39f Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Tue, 22 Jul 2025 17:26:02 +0800 Subject: [PATCH] no message --- src/views/clue/components/data.ts | 22 +++++++++++++++++----- src/views/clue/customer/data.ts | 2 ++ src/views/invite/index/index.vue | 16 ++++++++-------- 3 files changed, 27 insertions(+), 13 deletions(-) diff --git a/src/views/clue/components/data.ts b/src/views/clue/components/data.ts index f5c0a95..e608dfd 100644 --- a/src/views/clue/components/data.ts +++ b/src/views/clue/components/data.ts @@ -1,7 +1,7 @@ import { FormSchema } from '/@/components/Table' import { ref } from 'vue' import dayjs, { Dayjs } from 'dayjs' -import { genderList, channelList, clueStatusList, followStatusList, paymentList, marriageList } from '/@/enums/customerEnum' +import { genderList, channelList, clueStatusList, followStatusList, paymentList, marriageList, incomeList } from '/@/enums/customerEnum' import { useAddressData } from '/@/hooks/common' import { getIncomeList, @@ -117,15 +117,27 @@ export const modalFormSchema: FormSchema[] = [ }, }, }, + // { + // field: 'incomeCode', + // label: '月收入', + // colProps: { span: 8 }, + // component: 'ApiSelect', + // componentProps: { + // labelField: 'desc', + // api: getIncomeList, + // getPopupContainer: () => document.body, + // onChange: (_: any, v: any) => { + // basicInfoData.value.income = v?.label + // }, + // }, + // }, { field: 'incomeCode', label: '月收入', colProps: { span: 8 }, - component: 'ApiSelect', + component: 'Select', componentProps: { - labelField: 'desc', - api: getIncomeList, - getPopupContainer: () => document.body, + options: incomeList, onChange: (_: any, v: any) => { basicInfoData.value.income = v?.label }, diff --git a/src/views/clue/customer/data.ts b/src/views/clue/customer/data.ts index b6b0c61..bf45116 100644 --- a/src/views/clue/customer/data.ts +++ b/src/views/clue/customer/data.ts @@ -18,6 +18,8 @@ import { getCarPurchaseSituation, } from '/@/api/essentialData' +import { incomeList } from '/@/enums/customerEnum' + import { getStoreTeam } from '/@/api/clue' // 基础信息的额外数据 diff --git a/src/views/invite/index/index.vue b/src/views/invite/index/index.vue index 7c8e255..b355b21 100644 --- a/src/views/invite/index/index.vue +++ b/src/views/invite/index/index.vue @@ -103,14 +103,14 @@ showTableSetting: false, api: getInvitationPage, rowKey: 'id', - // rowSelection: { - // type: 'checkbox', - // onChange, - // // getCheckboxProps(record: any) { - // // // Demo: 第一行(id为0)的选择框禁用 - // // return { disabled: record.allocationStatus !== 1 }; - // // }, - // }, + rowSelection: { + type: 'checkbox', + onChange, + getCheckboxProps(record: any) { + // Demo: 第一行(id为0)的选择框禁用 + return true; + }, + }, formConfig: { labelWidth: 120, schemas: tableFormSchema,