Commit d0655f2d authored by zhengyi's avatar zhengyi

选择联系人搜索框补充电话搜索参数

parent bb61d570
<template> <template xmlns="http://www.w3.org/1999/html">
<el-dialog <el-dialog
:title="$t('选择联系人')" :title="$t('选择联系人')"
visible visible
...@@ -6,11 +6,18 @@ ...@@ -6,11 +6,18 @@
:close-on-click-modal="false" :close-on-click-modal="false"
> >
<div class="header mb-10 flex-center"> <div class="header mb-10 flex-center">
<div class="flex-center">{{ $t("关键字") }}</div>
<el-input v-model="form.searchKey" @change="replaceBlank" clearable class="w-200"></el-input> <el-form :model="form" size="small" :inline="true" label-width="80px">
<el-button type="primary" class="ml-10" @click="handleQuery">{{ <el-form-item :label="$t('电话')" prop="phone">
$t("搜索") <el-input v-model="form.phone" @change="replaceBlank" clearable class="w-160"></el-input>
}}</el-button> </el-form-item>
<el-form-item :label="$t('关键字')" prop="searchKey">
<el-input v-model="form.searchKey" @change="replaceBlank" clearable class="w-160"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">{{ $t("搜索") }}</el-button>
</el-form-item>
</el-form>
</div> </div>
<div class="list"> <div class="list">
<div <div
...@@ -66,7 +73,9 @@ import { ...@@ -66,7 +73,9 @@ import {
getCustomerContactsSelect, getCustomerContactsSelect,
getCustomerContactsSelect2, getCustomerContactsSelect2,
} from "@/api/ecw/customerContacts"; } from "@/api/ecw/customerContacts";
import UserSelector from "@/components/UserSelector/index.vue";
export default { export default {
components: {UserSelector},
props: { props: {
type: Number, type: Number,
}, },
...@@ -116,6 +125,7 @@ export default { ...@@ -116,6 +125,7 @@ export default {
replaceBlank(){ replaceBlank(){
// JDAA-177 7.选择联系人弹出页,没有去掉中间和前后空格 // JDAA-177 7.选择联系人弹出页,没有去掉中间和前后空格
this.form.searchKey = this.form.searchKey.replace(/\s+/g, ''); this.form.searchKey = this.form.searchKey.replace(/\s+/g, '');
this.form.searchKey = this.form.searchKey.replace(/\s+/g, '');
} }
}, },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment