From 8894dfb59467dd4d79125147f93f6c40865d7981 Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Wed, 30 Jul 2025 15:09:53 +0800 Subject: [PATCH] no message --- src/components/Icon/Icon.vue | 4 +- src/components/OssUpload/src/index.vue | 2 +- src/views/clue/components/modal.vue | 6 +- src/views/clue/customer/data.ts | 42 +++--- src/views/clue/customer/index.vue | 6 +- .../sys/workbench/components/GrowCard.vue | 39 ++++++ .../workbench/components/WorkbenchHeader.vue | 4 +- src/views/sys/workbench/data.ts | 132 +++++------------- src/views/sys/workbench/index.vue | 11 +- 9 files changed, 123 insertions(+), 123 deletions(-) create mode 100644 src/views/sys/workbench/components/GrowCard.vue diff --git a/src/components/Icon/Icon.vue b/src/components/Icon/Icon.vue index ccd2302..d7254a0 100644 --- a/src/components/Icon/Icon.vue +++ b/src/components/Icon/Icon.vue @@ -18,8 +18,8 @@ import { ref, watch, onMounted, nextTick, unref, computed, CSSProperties } from 'vue' import SvgIcon from './src/SvgIcon.vue' import Iconify from '@purge-icons/generated' - import { isString } from '@/utils/is' - import { propTypes } from '@/utils/propTypes' + import { isString } from '/@/utils/is' + import { propTypes } from '/@/utils/propTypes' const SVG_END_WITH_FLAG = '|svg' diff --git a/src/components/OssUpload/src/index.vue b/src/components/OssUpload/src/index.vue index 15950f8..027f7cf 100644 --- a/src/components/OssUpload/src/index.vue +++ b/src/components/OssUpload/src/index.vue @@ -255,7 +255,7 @@ const check = await handleRemove(item) if (!check) return const file: any = fileList.value.splice(index, 1) - emits('remove', file) + emits('remove', {file, index}) } diff --git a/src/views/clue/components/modal.vue b/src/views/clue/components/modal.vue index 698251e..4b475be 100644 --- a/src/views/clue/components/modal.vue +++ b/src/views/clue/components/modal.vue @@ -65,7 +65,7 @@
- +
@@ -199,6 +199,10 @@ } } + function onUploadRemove({file, index}){ + uploadList.value.splice(index, 1) + } + const { createMessage } = useMessage() const emits = defineEmits(['success']) async function handleOk() { diff --git a/src/views/clue/customer/data.ts b/src/views/clue/customer/data.ts index 963b9fb..0f32625 100644 --- a/src/views/clue/customer/data.ts +++ b/src/views/clue/customer/data.ts @@ -2,7 +2,7 @@ import { useAddressData } from '/@/hooks/common' import { ref } from 'vue' import dayjs, { Dayjs } from 'dayjs' import { FormSchema } from '/@/components/Form' -import { genderList, followTypeList, followStageList, paymentList, marriageList, storeAppointmentStatus } from '/@/enums/customerEnum' +import { genderList, channelList, followStageList, paymentList, marriageList, storeAppointmentStatus } from '/@/enums/customerEnum' import { getIncomeList, getNationList, @@ -62,6 +62,16 @@ export const basicSchema: FormSchema[] = [ } }, }, + { + field: 'channelType', + label: '渠道来源', + defaultValue: 1, + colProps: { span: 8 }, + component: 'Select', + componentProps: { + options: channelList, + }, + }, { field: 'age', label: '年龄', component: 'InputNumber', colProps: { span: 8 }, }, { field: 'height', label: '身高(cm)', component: 'InputNumber', colProps: { span: 8 }, }, { field: 'weight', label: '体重(kg)', component: 'InputNumber', colProps: { span: 8 }, }, @@ -137,21 +147,21 @@ export const basicSchema: FormSchema[] = [ }, }, }, - { - field: 'domicilePlace', - label: '户口所在地', - component: 'Cascader', - colProps: { span: 8 }, - componentProps: () => { - return { - options: domicilePlaceList.value, - onChange: (_: any, v: any) => { - basicInfoMoreData.value.domicilePlaceProvinceName = v?.[0]?.label - basicInfoMoreData.value.domicilePlaceCityName = v?.[1]?.label - }, - } - }, - }, + // { + // field: 'domicilePlace', + // label: '户口所在地', + // component: 'Cascader', + // colProps: { span: 8 }, + // componentProps: () => { + // return { + // options: domicilePlaceList.value, + // onChange: (_: any, v: any) => { + // basicInfoMoreData.value.domicilePlaceProvinceName = v?.[0]?.label + // basicInfoMoreData.value.domicilePlaceCityName = v?.[1]?.label + // }, + // } + // }, + // }, { field: 'hometown', label: '家乡', diff --git a/src/views/clue/customer/index.vue b/src/views/clue/customer/index.vue index 7cd29b0..f2612e4 100644 --- a/src/views/clue/customer/index.vue +++ b/src/views/clue/customer/index.vue @@ -147,7 +147,7 @@
- +
@@ -357,6 +357,10 @@ await editClueRecord({id: details.value.id, profilePhoto: value, phone: details.value.phone, weChatId: details.value.weChatId}) details.value.profilePhoto = value } + + function onUploadRemove({file, index}){ + uploadList.value.splice(index, 1) + } // 择偶标准表单配置 const [registerForm3, { getFieldsValue: getFieldsValue3, setFieldsValue: setFieldsValue3 }] = useForm({ diff --git a/src/views/sys/workbench/components/GrowCard.vue b/src/views/sys/workbench/components/GrowCard.vue new file mode 100644 index 0000000..38a8c2a --- /dev/null +++ b/src/views/sys/workbench/components/GrowCard.vue @@ -0,0 +1,39 @@ + + diff --git a/src/views/sys/workbench/components/WorkbenchHeader.vue b/src/views/sys/workbench/components/WorkbenchHeader.vue index 3da608c..a47652a 100644 --- a/src/views/sys/workbench/components/WorkbenchHeader.vue +++ b/src/views/sys/workbench/components/WorkbenchHeader.vue @@ -1,5 +1,5 @@ \ No newline at end of file