|
@@ -2,6 +2,7 @@
|
|
|
import {apiCustomerUser} from '@/api/customer'
|
|
|
|
|
|
const show = defineModel('show', { type: Boolean, default: false })
|
|
|
+const emits = defineEmits(['change'])
|
|
|
const props=defineProps({
|
|
|
data:{
|
|
|
type:Array,
|
|
@@ -12,7 +13,7 @@ const props=defineProps({
|
|
|
const columns = [
|
|
|
{ align: 'center', colKey: 'RealName', title: '姓名' },
|
|
|
{ align: 'center', colKey: 'Mobile', title: '手机号',width:'150px' },
|
|
|
- { align: 'center', colKey: 'DepartmentName', title: '岗位-部门',width:'150px' },
|
|
|
+ { align: 'center', colKey: 'DepartmentName', title: '岗位-部门'},
|
|
|
{ align: 'center', colKey: 'BusinessName', title: '客户名称' },
|
|
|
{ align: 'center', colKey: 'PositionStatus', title: '在职状态',width:'100px' },
|
|
|
]
|
|
@@ -21,6 +22,7 @@ async function handleSave(){
|
|
|
const res=await apiCustomerUser.importUser({ValidUser:props.data})
|
|
|
if(res.Ret!==200) return
|
|
|
MessagePlugin.success('导入成功')
|
|
|
+ emits('change')
|
|
|
show.value=false
|
|
|
}
|
|
|
|
|
@@ -37,6 +39,7 @@ async function handleSave(){
|
|
|
:confirmBtn="null"
|
|
|
class="import-user-wrap"
|
|
|
>
|
|
|
+ <div>请确认导入信息(已过滤信息不全的联系人)</div>
|
|
|
<t-table
|
|
|
rowKey="UserId"
|
|
|
:data="props.data"
|