opt:优化项目,客户相关代码

This commit is contained in:
zhangzq
2026-03-18 11:30:58 +08:00
parent 3a9e6df891
commit b6080e9d4b
10 changed files with 448 additions and 276 deletions

View File

@@ -49,8 +49,11 @@
</el-form-item>
<el-form-item label="选择添加用户" prop="user_id">
<el-select v-model="userData.user_id" placeholder="请选择" style="width: 100%;">
<el-option v-for="item in contactsList" :key="item.contacts_id" :label="item.contacts_name"
<el-select v-model="userData.user_id" filterable placeholder="请选择" style="width: 100%;">
<el-option v-for="item in contactsList"
filterable
:key="item.contacts_id"
:label="item.contacts_name"
:value="item.contacts_id">
</el-option>
</el-select>
@@ -230,7 +233,7 @@ export default {
},
//获取用户信息
getUserInfoList() {
user.getUserInfoList({ currPage: this.currPage, pageSize: this.pageSize, }).then(res => {
user.getUserInfoList({ currPage: this.currPage, pageSize: this.pageSize}).then(res => {
this.userList = res.data.data.list;
console.log('userList', this.userList);
this.total = res.data.data.total;