|
|
@@ -23,7 +23,6 @@ import { QueryCustomInfo } from '@/goServiceAPI/ermcp/customInfo/index';
|
|
|
import { QueryCustomInfoType } from '@/goServiceAPI/ermcp/customInfo/interface';
|
|
|
import filterCustomTable from '@/views/information/custom/compoments/filterTable/index.vue';
|
|
|
import { getTableHead, ColumnType } from '@/services/bus/table';
|
|
|
-import { TableState, TableStateFilters } from 'ant-design-vue/es/table/interface';
|
|
|
import { message } from 'ant-design-vue';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
|
|
|
@@ -64,13 +63,8 @@ function getCustomList() {
|
|
|
item.filteredValue = filtered.nickname || null;
|
|
|
}
|
|
|
if (e.columntitle === '客户名称') {
|
|
|
- // 注意:这里绑定值 待确认
|
|
|
- item.onFilter = (value: string, record: QueryCustomInfoType) => {
|
|
|
- // 用户信息类型 - 1:个人 2:企业
|
|
|
- const name = String(record.userinfotype) === '1' ? record.contactname : record.customername;
|
|
|
- name.includes(value);
|
|
|
- item.filteredValue = filtered.contactname || null;
|
|
|
- };
|
|
|
+ item.onFilter = (value: string, record: QueryCustomInfoType) => record.contactname.includes(value);
|
|
|
+ item.filteredValue = filtered.contactname || null;
|
|
|
}
|
|
|
if (e.columntitle === '手机号码') {
|
|
|
item.onFilter = (value: string, record: QueryCustomInfoType) => record.mobile.includes(value);
|