From 450afc66b08655e4c8e52d4027487b41026d14b1 Mon Sep 17 00:00:00 2001 From: dj <1042039504@qq.com> Date: Fri, 22 Nov 2024 18:06:08 +0800 Subject: [PATCH] =?UTF-8?q?feat(phone-traffic-management):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=8B=A8=E6=89=93=E5=8D=95=E4=BD=8D=E5=92=8C=E7=8F=AD?= =?UTF-8?q?=E7=BB=84=E4=BF=A1=E6=81=AF=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../address-book-management/index.vue | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/src/views/phone-traffic-management/address-book-management/index.vue b/src/views/phone-traffic-management/address-book-management/index.vue index fec08ff..0f414d6 100644 --- a/src/views/phone-traffic-management/address-book-management/index.vue +++ b/src/views/phone-traffic-management/address-book-management/index.vue @@ -81,6 +81,30 @@ const formSchema = computed(() => { filterable: true, } }, + { + label: '拨打单位', + prop: 'dispatchUnit', + component: 'el-input', + colProps: { + span: 24 + }, + props: { + placeholder: '请输入拨打单位', + clearable: true, + } + }, + { + label: '班组信息', + prop: 'team', + component: 'el-input', + colProps: { + span: 24 + }, + props: { + placeholder: '请输入班组信息', + clearable: true, + } + }, { label: '姓名', prop: 'name', @@ -189,6 +213,21 @@ const addressBookTableConfig = reactive({ } } }, + { + prop: 'dispatchUnit', + label: '拨打单位', + align: 'center' + }, + { + prop: 'team', + label: '班组信息', + align: 'center' + }, + { + prop: 'team', + label: '拨打单位', + align: 'center' + }, { prop: 'name', label: '姓名', @@ -339,7 +378,16 @@ const handleSubmitAddressBook = async (formInstance) => { if (!formInstance) return; let validate = await formInstance.validate() if (!validate.isValidate) return; + if(formInstance.getValues().role=='0'&&!formInstance.getValues().team){ + ElMessage.warning('请输入班组信息'); + return; + } + if(formInstance.getValues().role=='1'&&!formInstance.getValues().dispatchUnit){ + ElMessage.warning('请输入拨打单位'); + return; + } if (dialogType.value === "add") { + addContact(formInstance.getValues()).then(res => { if (res.code === 1000) { ElMessage.success(res.msg);