|
@@ -42,7 +42,7 @@
|
|
<van-dialog class="dialog" v-model="dialog.show" :title="dialog.title" :show-confirm-button="false" show-cancel-button cancel-button-text="返回">
|
|
<van-dialog class="dialog" v-model="dialog.show" :title="dialog.title" :show-confirm-button="false" show-cancel-button cancel-button-text="返回">
|
|
<van-col span="24" class="one" v-if="dialog.type == '1'">
|
|
<van-col span="24" class="one" v-if="dialog.type == '1'">
|
|
<van-col span="24" class="one_1">
|
|
<van-col span="24" class="one_1">
|
|
- <van-search v-model="name" show-action placeholder="请输入姓名">
|
|
|
|
|
|
+ <van-search v-model="phone" show-action placeholder="请输入账号">
|
|
<template #action>
|
|
<template #action>
|
|
<div @click="searchUser()">搜索</div>
|
|
<div @click="searchUser()">搜索</div>
|
|
</template>
|
|
</template>
|
|
@@ -50,10 +50,13 @@
|
|
</van-col>
|
|
</van-col>
|
|
<van-col span="24" class="one_2">
|
|
<van-col span="24" class="one_2">
|
|
<van-col span="24" class="list" v-for="(item, index) in list" :key="index">
|
|
<van-col span="24" class="list" v-for="(item, index) in list" :key="index">
|
|
- <van-col span="24" class="name"> {{ item.name }} </van-col>
|
|
|
|
|
|
+ <van-col span="24" class="name"> {{ item.phone }} </van-col>
|
|
<van-col span="24" class="other">
|
|
<van-col span="24" class="other">
|
|
<van-col span="24" class="otherInfo">
|
|
<van-col span="24" class="otherInfo">
|
|
- 联系电话:<span>{{ item.phone }}</span>
|
|
|
|
|
|
+ 联系电话:<span>{{ item.name }}</span>
|
|
|
|
+ </van-col>
|
|
|
|
+ <van-col span="24" class="otherInfo">
|
|
|
|
+ 机构代码:<span>{{ item.code }}</span>
|
|
</van-col>
|
|
</van-col>
|
|
</van-col>
|
|
</van-col>
|
|
<van-col span="24" class="btn">
|
|
<van-col span="24" class="btn">
|
|
@@ -83,7 +86,7 @@ export default {
|
|
return {
|
|
return {
|
|
dialog: { show: false, titla: '查询用户', type: '1' },
|
|
dialog: { show: false, titla: '查询用户', type: '1' },
|
|
// 查询
|
|
// 查询
|
|
- name: '',
|
|
|
|
|
|
+ phone: '',
|
|
list: [],
|
|
list: [],
|
|
limit: 3,
|
|
limit: 3,
|
|
total: 0,
|
|
total: 0,
|
|
@@ -113,7 +116,7 @@ export default {
|
|
},
|
|
},
|
|
// 查询用户
|
|
// 查询用户
|
|
async searchUser({ skip = 0, limit = this.limit, ...info } = {}) {
|
|
async searchUser({ skip = 0, limit = this.limit, ...info } = {}) {
|
|
- let res = await this.personalQuery({ skip, limit, name: this.name, ...info });
|
|
|
|
|
|
+ let res = await this.personalQuery({ skip, limit, phone: this.phone, ...info });
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
this.$set(this, `list`, res.data);
|
|
this.$set(this, `list`, res.data);
|
|
this.$set(this, `total`, res.total);
|
|
this.$set(this, `total`, res.total);
|
|
@@ -122,7 +125,7 @@ export default {
|
|
// 确认选择
|
|
// 确认选择
|
|
conFirm(value) {
|
|
conFirm(value) {
|
|
this.$set(this.form, `to_id`, value.id);
|
|
this.$set(this.form, `to_id`, value.id);
|
|
- this.$set(this.form, `to_name`, value.name);
|
|
|
|
|
|
+ this.$set(this.form, `to_name`, value.phone);
|
|
this.dialog = { show: false, title: '查询用户', type: '1' };
|
|
this.dialog = { show: false, title: '查询用户', type: '1' };
|
|
},
|
|
},
|
|
},
|
|
},
|
|
@@ -163,6 +166,7 @@ export default {
|
|
.otherInfo {
|
|
.otherInfo {
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
color: #666;
|
|
color: #666;
|
|
|
|
+ margin: 0 0 5px 0;
|
|
span {
|
|
span {
|
|
color: #000;
|
|
color: #000;
|
|
}
|
|
}
|