|
@@ -13,7 +13,7 @@
|
|
filterable
|
|
filterable
|
|
multiple
|
|
multiple
|
|
remote
|
|
remote
|
|
- placeholder="请选择用户"
|
|
|
|
|
|
+ placeholder="请输入正确用户名称,以便于查询"
|
|
:remote-method="querySearch"
|
|
:remote-method="querySearch"
|
|
:loading="loading"
|
|
:loading="loading"
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
@@ -82,6 +82,12 @@ export default {
|
|
if (this.id) {
|
|
if (this.id) {
|
|
const res = await this.fetch(this.id);
|
|
const res = await this.fetch(this.id);
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
|
|
+ let arr = [];
|
|
|
|
+ let aee = await this.usersFetch(res.data.customer);
|
|
|
|
+ if (this.$checkRes(aee)) {
|
|
|
|
+ arr.push(aee.data);
|
|
|
|
+ this.$set(this, 'customerList', arr);
|
|
|
|
+ }
|
|
let list = [];
|
|
let list = [];
|
|
list.push(res.data.customer);
|
|
list.push(res.data.customer);
|
|
res.data.customer = list;
|
|
res.data.customer = list;
|